# Please help - Scroller Issue

**URL:** <https://forum.kirupa.com/t/please-help-scroller-issue/209987>\
**Category:** flash\
**Created:** [December 13, 2006, 9:43pm UTC](https://forum.kirupa.com/t/please-help-scroller-issue/209987 "2006-12-13T21:43:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addam](https://avatars.discourse-cdn.com/v4/letter/a/a5b964/32.png) [@addam](https://forum.kirupa.com/u/addam)\
**Post date:** [December 13, 2006, 9:43pm UTC](https://forum.kirupa.com/t/please-help-scroller-issue/209987/1 "2006-12-13T21:43:47Z")

</div>

hello!

i found this scroller and it works great except i would like to make it ease to a stop when the user rolls off the hit area (right now it just stops abruptly). can someone please take a look at my attached fla and suggest how i can accomplish this, thanks alot!!

bah, file too big to upload, here’s code:

* * *

panel.onRollOver = panelOver;

function panelOver() {  
this.onEnterFrame = scrollPanel;  
delete this.onRollOver;  
}

var b = stroke.getBounds(\_root);

function scrollPanel() {  
if(\_xmouse\<b.xMin || \_xmouse\>b.xMax || \_ymouse\<b.yMin || \_ymouse\>b.yMax) {  
this.onRollOver = panelOver;  
delete this.onEnterFrame;  
}

```
if(panel._x &gt;= 89) {
    panel._x = 89;
}

if(panel._x &lt;= -751) {
    panel._x = -751;
}

var xdist = _xmouse - 250;

panel._x += Math.round(-xdist / 22);

```

}
