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

Incorrect value selected when vertical scale does not fit on screen #246

Closed
johnpdev opened this issue Feb 18, 2021 · 1 comment
Closed

Comments

@johnpdev
Copy link

johnpdev commented Feb 18, 2021

When a vertical scale does not fit in the viewport and there is a scrollbar, an incorrect value is selected when the slider is clicked. This occurs when all of the following are true:

  • The vertical slider extends beyond the viewable area
  • The pointer is not visible on the screen
  • The slider pointer is not focussed

If the slider pointer is focussed at the time the slider is clicked, then the correct value is selected. I have reproduced this using the vertical slider on your demo page so you should be able to do the same. The issue is more pronounced with larger scales of course, and the erroneous value selected is not constant (0 or 10 - low or high), it is offset from the point clicked. See the attached gif for an example, and please let me know if there is a configuration to get around this issue.

Thank you very much!

vertical_scale_issue

@piotrdz
Copy link
Member

piotrdz commented Feb 15, 2024

There is a scale option provided in slider options to counteract CSS zoom effects. See #234 and #367. Closing this one as duplicate.

@piotrdz piotrdz closed this as completed Feb 15, 2024
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

2 participants