Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#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:
Blocked by: Blocking:

Description (last modified by Scott González)

When clicking near the edge of the handle, the handle may jump before the user actually moves the mouse.

Change History (10)

comment:1 Changed 11 years ago by sz_zoly7

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

comment:2 Changed 11 years ago by Jörn Zaefferer

Milestone: 1.7.21.8

comment:3 Changed 11 years ago by andrew_

I'm not able to reproduce this. IE8, IE6, Firefox 3.5.5.

comment:4 Changed 10 years ago by rdworth

Owner: set to rdworth
Status: newassigned

comment:5 Changed 10 years ago by Scott González

Description: modified (diff)
Priority: criticalmajor
Summary: slider handle jumps few pixels right or left if it's clicked on itSlider: handle jumps a few pixels when clicked

comment:6 Changed 10 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 10 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 10 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.

Last edited 10 years ago by skeetergraphics (previous) (diff)

comment:9 Changed 10 years ago by skeetergraphics

Resolution: fixed
Status: assignedclosed

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

comment:10 Changed 10 years ago by Scott González

Milestone: 1.91.8.7
Note: See TracTickets for help on using tickets.