Opened 14 years ago

Closed 14 years ago

#3643 closed bug (fixed)

Slider with animation change event returns wrong value if you move mouse

Reported by: d.glynn Owned by:
Priority: critical Milestone: 1.7
Component: ui.slider Version: 1.6rc2
Keywords: Cc:
Blocked by: Blocking:


I encountered the same bug that was (incorrectly) reported here:

The bug text, with some minor additions: ===== I have found this problem in the latest release of the Slider [jQuery UI 1.5.2, jQuery UI 1.6rc2, SVN Trunk Rev 1061] and it occurs on IE6, 7 & Firefox 3.0, so I don't think it is browser related. However it does seem to be a problem on a slow low spec PC more so than a fast machine.

Create a slider with animation, click once on the rail to make the slider move, then quickly move the mouse over another value on the rail, the ui.value raised will have the value of the mouse position rather than where the handle is. Clicking from one extreme to the other causes the problem more than if you only move one point either way.

Sample code I am using:

.slider({animate: true, startValue: 6, min: 2, max: 10, stepping: 2, handle: ".ui-slider-handle", change: function(e, ui){ sliderOnChange(e, ui);} }); });

This happens if you use Stop event as well. I can reproduce this fairly easily. I would appreciate some assistance with a resolution as I am reliant on the slider for my application.

Many thanks Andy =====

Change History (2)

comment:1 Changed 14 years ago by Scott González

Milestone: TBD1.6
Priority: minorcritical

comment:2 Changed 14 years ago by paul

Resolution: fixed
Status: newclosed

That should be fixed.

Note: See TracTickets for help on using tickets.