Ticket #4467 (closed bug: fixed)

Opened 5 years ago

Last modified 4 years ago

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:1 Changed 5 years ago by sz_zoly7

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

comment:2 Changed 5 years ago by joern.zaefferer

  • Milestone changed from 1.7.2 to 1.8

comment:3 Changed 5 years ago by andrew_

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

comment:4 Changed 5 years ago by rdworth

  • Owner set to rdworth
  • Status changed from new to assigned

comment:5 Changed 4 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 4 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 4 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 4 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 4 years ago by skeetergraphics (previous) (diff)

comment:9 Changed 4 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

comment:10 Changed 4 years ago by scott.gonzalez

  • Milestone changed from 1.9 to 1.8.7
Note: See TracTickets for help on using tickets.