Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #4317 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

Draggables from scrollable elements

Reported by: bk@benjaminkrause.com Assigned to: thomas@fesch.at
Priority: normal Milestone:
Component: script.aculo.us Version: 1.0.0
Severity: normal Keywords: dragdrop
Cc:

Description

i want to create a draggable element inside a scrollable block. this works fine i got something like:

<div style="height: 20px; overflow:scroll">

<div id="drag_item_1">drag me</div>

<div id="drag_item_1">drag me</div>

...

</div>

i have the draggable as ghost, otherwise i wouldnt be able to move the draggable out of my scrollable block, but this is fine ..

now here's the problem, if i scroll down the scrolleable element to acces, e.g. element 20, the 20th element will be shown on another position than the mouse cursor whenever i start dragging. i guess this is because you create the ghost where the draggble is located, assuming i did not scroll within my scrollable block.

i got an example up and running and would like to show you the effect. just drop me an email so i can explain what to do to see the effect..

we might even talk in deutsch, wenns es nichts ausmacht :-)

i'm running a very recent version of rails..

btw.. great library! really enjoying building applications based on your libs.. and rails :)

Change History

03/20/06 13:50:58 changed by anonymous

seemd to be the same effect as described in Ticket #3860

08/19/06 02:52:58 changed by tomg@byu.net

  • keywords changed from draggable to dragdrop.
  • status changed from new to closed.
  • resolution set to fixed.

Make sure you're using the scroll option when creating your sortables/droppables.

There have been several scrolling fixes applied in SVN, which may have resolved this issue. Please test with the most recent (unreleased) SVN version.

Reopen if this is still a problem.