Skip to content

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