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

Slider not selecting some values #945

Open
praveenk-raveendran opened this issue Jun 18, 2020 · 3 comments
Open

Slider not selecting some values #945

praveenk-raveendran opened this issue Jun 18, 2020 · 3 comments

Comments

@praveenk-raveendran
Copy link

Issues

The slider while dragging not selecting some values like 17, 75, etc.

I have created a JSFiddle for this here:
https://jsfiddle.net/9633599302/o9t0wrbu/

@seiyria
Copy link
Owner

seiyria commented Jun 18, 2020

It looks like this is due to where the tick is placed, causing a hard to click zone. It can be manually selected by using tab to focus on the element and using the arrow keys. I suspect this will be an issue in most situations with tick_positions set.

@praveenk-raveendran
Copy link
Author

What about 75, there are no tick positions around that.
While investigating about this, I have changed a line of code in the _mousemove function as follows:

var percentage = Math.floor(this._getPercentage(ev));

After this, all values were showing while dragging, but not remain as selected.

@rovolution
Copy link
Collaborator

we would definitely appreciate a bug fix pr @praveenk-raveendran!

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

No branches or pull requests

3 participants