# Scoll drag issue when moved

**URL:** <https://forum.kirupa.com/t/scoll-drag-issue-when-moved/263073>\
**Category:** Uncategorized\
**Created:** [June 12, 2008, 11:52am UTC](https://forum.kirupa.com/t/scoll-drag-issue-when-moved/263073 "2008-06-12T11:52:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![randomagain](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@randomagain](https://forum.kirupa.com/u/randomagain)\
**Post date:** [June 12, 2008, 11:52am UTC](https://forum.kirupa.com/t/scoll-drag-issue-when-moved/263073/1 "2008-06-12T11:52:08Z")

</div>

Hi

I have a element which need scrolling and at the same time it can move to a secondary position.

```auto
 
 scrollcontainer.scrollFace.onPress = function() {
  //
  var currPos:Number = this._y;
  startDrag(this, false, left, top, right, bottom);
  this.onMouseMove = function() {
   //
   //
   dy = Math.abs(initPosition-this._y);
   _root.testing.gah._y = Math.round(dy*-1*moveVal+initContentPos);
   //
  };
 };

```

**2 problems:**

**1:** when I use the above scroll bar it just scrolls in its old position rather than where it should be

**2:** if I use the up/down buttons it is fairly fluid but obivously not restricted to where it should be

…

I vagely can see what is going on with the scollbar but the buttons are just nuts
