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

Made color changes trigger for a tap, not just a drag #2

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

Made color changes trigger for a tap, not just a drag #2

wants to merge 1 commit into from

Conversation

caleron
Copy link
Owner

@caleron caleron commented Mar 10, 2016

In previous versions the colors would not change for a tap, only for drags.
Yet, on the bars, the pointer would move to the tapped position, suggesting
this wasn't the intended behavior. This commit addresses this problem.

This commit solves LarsWerkman#66

Changes:
The bars run the same code for taps as they do for drags.
The color picker itself now responds to taps, to ensure a consistent experience.
Minor refactoring by pulling repeated code out of if-else chains to outside the chain.

In previous versions the colors would not change for a tap, only for drags.
Yet, on the bars, the pointer would move to the tapped position, suggesting
this wasn't the intended behavior. This commit addresses this problem.

This commit solves LarsWerkman#66

Changes:
  The bars run the same code for taps as they do for drags.
  The color picker itself now responds to taps, to ensure a consistent experience.
  Minor refactoring by pulling repeated code out of if-else chains to outside the chain.
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