Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSelectedPoint and setSelectorPoint bug #88

Open
bytealan opened this issue Apr 22, 2022 · 3 comments
Open

getSelectedPoint and setSelectorPoint bug #88

bytealan opened this issue Apr 22, 2022 · 3 comments

Comments

@bytealan
Copy link

There is an error between the obtained coordinates and the set coordinates

getSelectedPoint -> Point(620, 435)
setSelectorPoint -> Point(620, 435)
approximatedPoint -> Point(618, 434)

@skydoves
Copy link
Owner

Hi @WuWenL0, could you elaborate on this?

The approximatedPoint don't calculate exactly the same point which is selected by users and the method does approximate as the method name is.

One of the reasons is - If a user touches outside of the image matrix, we should calculate the nearest and proper colors from the point. So 1~2 points difference might happen in the calculating. If you could suggest or find any great algorithm/solution, it would be very appreciated!

Thanks.

@bytealan
Copy link
Author

bytealan commented Apr 24, 2022

Thank you for answering the question.
See the video below for my problems.
There are five alphatileviews. When I click, I will switch and save the point of the previous alphatileview, and switch to the new alphatileview point. When I click repeatedly, the color will change.
Is there any good way to solve it?

petal_20220424_090356.mp4

@Deaful
Copy link

Deaful commented Sep 22, 2022

@skydoves Hi,could you set a switch to control whether point need to calculate exactly or not?And this switch has getter and setter method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants