# Dragging to a scrollable region

**URL:** <https://www.ruby-forum.com/t/dragging-to-a-scrollable-region/112792>\
**Category:** Rails\
**Created:** [August 23, 2007, 9:46am UTC](https://www.ruby-forum.com/t/dragging-to-a-scrollable-region/112792 "2007-08-23T09:46:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@lee](https://www.ruby-forum.com/u/lee)\
**Post date:** [August 23, 2007, 9:46am UTC](https://www.ruby-forum.com/t/dragging-to-a-scrollable-region/112792/1 "2007-08-23T09:46:54Z")

</div>

I have a div which contains a list of elements. Each element can  
receive other draggable elements. The div is scrollable to accomodate  
longer lists as I want a footer below the div to remain visible at all  
times.

When scrolling is not enabled (short lists), the drag and drop works  
fine. Once scrolling is enabled though (longer lists) I find that I  
have to drag elements to what would appear to be the absolute  
coordinates of the target “receiving” element - that is, its position  
if scrolling were not enabled.

Help appreciated.

---

<div class="post-metadata">

**Author:** ![lee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/bc8723/32.png) [@lee](https://www.ruby-forum.com/u/lee)\
**Post date:** [August 23, 2007, 3:34pm UTC](https://www.ruby-forum.com/t/dragging-to-a-scrollable-region/112792/2 "2007-08-23T15:34:40Z")

</div>

After some more searching and testing, I have found a solution.  
Setting “includeScrollOffsets” to true in prototype.js fixes the  
problem.

Still, I would be grateful for any other thoughts on this. I’d rather  
not change prototype.js directly if possible.
