Skip to content

Always fire a change event when the user interacts with the knob #140

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

Merged
merged 1 commit into from
Nov 19, 2013

Conversation

amuino
Copy link
Contributor

@amuino amuino commented Nov 14, 2013

  • touch
  • wheel
  • typing (by binding to the "input" event)

Previously, typing did not update the knob until focus was lost (and
no change event was fired), and
using the keyboard arrows did not fire any change events.

Also move event triggering to val() and change() so it works always
in the same way and less duplication exists.

Fixes #89 (a different approach than PR #102

- touch
- wheel
- typing (by binding to the "input" event)

Previously, typing did not update the knob until focus was lost (and
no change event was fired), and
using the keyboard arrows did not fire any change events.

Also move event triggering to val() and change() so it works always
in the same way and less duplication exists.
@mickdekkers
Copy link

Thank you! Now Knob works flawlessly 😀

aterrien added a commit that referenced this pull request Nov 19, 2013
Always fire a change event when the user interacts with the knob @amuino
@aterrien aterrien merged commit 87c54d4 into aterrien:master Nov 19, 2013
aterrien added a commit that referenced this pull request Nov 19, 2013
aterrien added a commit that referenced this pull request Nov 19, 2013
@aterrien
Copy link
Owner

This pull request introduces a bug when repainting on mouseup diplayPrevious enabled. You can see it on the demo page index.html. Can you fix it amuino ?

amuino pushed a commit to amuino/jQuery-Knob that referenced this pull request Nov 20, 2013
amuino referenced this pull request in amuino/jQuery-Knob Nov 20, 2013
That is, when using:
- touch
- wheel
- typing (by binding to the "input" event)

Previously, typing did not update the knob until focus was lost (and
no change event was fired), and
using the keyboard arrows did not fire any change events.

Also move event triggering to val() and change() so it works always
in the same way and less duplication exists.

Similar to aterrien#130 but fixes an issue with `diplayPrevious`
@amuino
Copy link
Contributor Author

amuino commented Nov 20, 2013

@aterrien issue fixed as #143

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.

Typing in a value you updates the display, but does not fire the change event
3 participants