Skip to content

Conversation

@artuze
Copy link

@artuze artuze commented Nov 1, 2013

On longer pages where the control isn't going to be obvious, scrolling past it tends to stop the page scroll and change the value on the control.

I added a quick boolean option scroll which defaults to true that is used as a conditional for the calls to bind to the mousewheel. This does have the unfortunate effect of disabling the ability to use the mousewheel on the dial completely.

(Also, hi. First pull-request ever, so I hope I'm doing this somewhat right, and if not, sorry, and feel free to ignore it. 😄 )

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @artuze, this is a useful feature.

However this line seems to cause scroll to always evaluate true and therefore the option does not work.
This should work the way intended:

scroll : this.$.data('scroll') == null || this.$.data('scroll'),

👍 for adding this option, had the same problem with the dial interfering with scrolling.

@Maxwell2022
Copy link

any chance to add this option?

dazwin added a commit to kwaaioak/jQuery-Knob that referenced this pull request Aug 17, 2017
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.

3 participants