Skip to main content

Search and Top Navigation

#3643 closed bug (fixed)

Opened December 09, 2008 10:32AM UTC

Closed January 28, 2009 10:08PM UTC

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:
Description

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

http://dev.jquery.com/ticket/3580

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

=

Attachments (0)
Change History (2)

Changed January 04, 2009 04:13AM UTC by scottgonzalez comment:1

milestone: TBD1.6
priority: minorcritical

Changed January 28, 2009 10:08PM UTC by paul comment:2

resolution: → fixed
status: newclosed

That should be fixed.