Forum: Rails Spinoffs (closed, excessive spam) Slider snaps back to start position

9d1fd4918c75d02c7904643f0fe12f31?d=identicon&s=25 Anders Bjarby (Guest)
on 2008-06-13 08:29
(Received via mailing list)
Hi, I’m using a slide in a floating div to scroll through
content of another div and everything works fine so far. Now, I have a
resize handle on the floating div so that the window is resizeable and
therby also the slider track change height when the div change height.
So… when finished resizing the div I dispose the slider and
creates a
new one:


help_floaters.id_10 = new
‘help_floater_slide_track_10′, {
axis: ‘vertical’,
onSlide: function(v) { scrollVertical(v, $
help_floaters.id_10); },
onChange: function(v) { scrollVertical(v, $
help_floaters.id_10); }

And it works fine… well almost… when releasing the drag
handle the
content of the overflowed div remains scrolled and fine but the drag
handle snaps back to the top position of the track when the mouse
button is released. Any clues what might go caue this?

A video describing my problem more visually is available here:
9d1fd4918c75d02c7904643f0fe12f31?d=identicon&s=25 Anders (Guest)
on 2008-06-13 08:41
(Received via mailing list)
One thing worth to clarify is that this behaviour only occurs after
resize, it works fine before the resize which wasn't really crystal
clear in the video.

This topic is locked and can not be replied to.