Ticket #4467 (closed bug: fixed)
Slider: handle jumps a few pixels when clicked
| Reported by: | sz_zoly7 | Owned by: | rdworth |
|---|---|---|---|
| Priority: | major | Milestone: | 1.8.7 |
| Component: | ui.slider | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description (last modified by scott.gonzalez) (diff)
When clicking near the edge of the handle, the handle may jump before the user actually moves the mouse.
Change History
comment:5 Changed 3 years ago by scott.gonzalez
- Priority changed from critical to major
- Description modified (diff)
- Summary changed from slider handle jumps few pixels right or left if it's clicked on it to Slider: handle jumps a few pixels when clicked
comment:6 Changed 3 years ago by jazzido
I spoke too fast, my patch fixed the issue on the site I'm working on. On the demos, I still see the behaviour you describe.
Idea: what about using the relative position of the click inside the handle instead of ( closestHandle.width() / 2 ) ?
comment:7 Changed 3 years ago by jazzido
Also, I've found that it might have to do with the left margin of the handle. The default theme uses '-.6 em'. If you change that value, the point inside the handle where -when clicking- the bug happens, moves farther or closer to the right edge.
Hope this helps.
comment:8 Changed 3 years ago by skeetergraphics
I've proposed a fix for this bug (commit). I pulled the slider demo and was able to make my one-line fix work in a local version of it as well as in my own project. The behavior is more universal than mentioned above. See my commit for more detail.
comment:9 Changed 3 years ago by skeetergraphics
- Status changed from assigned to closed
- Resolution set to fixed
Slider: Modified handle and scroll content not to jump twice when handle is grabbed and dragged from anywhere other than absolute center. Fixed #4467 - Slider: handle jumps a few pixels when clicked.
Changeset: 0c3e56dd7d82e889ffabc606fd66d47f3e2d27c8


It seems that this bug only appears on IE and Firefox browsers.