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

Recompute page-space origin coordinates every gesture #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nikki93
Copy link

@nikki93 nikki93 commented Dec 29, 2017

onLayout is only called when the position is changed within the parent container, but if the parent container itself moves, it's not called. This makes this._page{X,Y} be out of date. In my case, I have a draggable 'window' as the parent of the color picker and moving it around isn't updating this_page{X,Y}. This change makes it so this_page{X,Y} is computed whenever a new color picking gesture begins so that it's always up to date (unless the color picker moves while gesturing but we can take care of that later...).

@madox2
Copy link
Collaborator

madox2 commented Jan 4, 2018

Hi, thanks for contribution! It looks good, I have tested it and it is working on Android. It would be nice to have such functionality also in holo picker.

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

Successfully merging this pull request may close these issues.

2 participants