Ticket #3643 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

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

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 =====

Change History

comment:1 Changed 6 years ago by scott.gonzalez

  • Priority changed from minor to critical
  • Milestone changed from TBD to 1.6

comment:2 Changed 6 years ago by paul

  • Status changed from new to closed
  • Resolution set to fixed

That should be fixed.

Note: See TracTickets for help on using tickets.