# Panoramic horizontal scrolling "saccading / bad scroll" problems

**URL:** <https://forum.kirupa.com/t/panoramic-horizontal-scrolling-saccading-bad-scroll-problems/281745>\
**Category:** flash\
**Created:** [February 12, 2009, 9:08pm UTC](https://forum.kirupa.com/t/panoramic-horizontal-scrolling-saccading-bad-scroll-problems/281745 "2009-02-12T21:08:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![humbucker](https://avatars.discourse-cdn.com/v4/letter/h/278dde/32.png) [@humbucker](https://forum.kirupa.com/u/humbucker)\
**Post date:** [February 12, 2009, 9:08pm UTC](https://forum.kirupa.com/t/panoramic-horizontal-scrolling-saccading-bad-scroll-problems/281745/1 "2009-02-12T21:08:30Z")

</div>

Hello everyone,

You helped me a lot these days and I’m grateful, here s my question :  
I’m creating a horizontal looping scroll, and when i’m running it it’s saccading , I mean the scroll is not perfectly smooth, I already saw that problem here and there, but I’m wondering if it’s a screen refresh problem, a flash player bug or what ?

Here is the part of the enterframe function I’m running :

```auto

public function scrolling(ev:Event):void {
     ldr1.x -= Math.round((this.mouseX-panoramask.width/2)/speed);
               trace(ldr1.x);
       if (ldr1.x > panoramask.x) {
           ldr2.x = ldr1.x-ldr2.width;
       } 
      else {
            ldr2.x = ldr1.x+ldr2.width;
       }

       if (ldr1.x < panoramask.x-ldr1.width) {
           ldr1.x = ldr2.x+ldr1.width;
       }

       if (ldr1.x > panoramask.width) {
           ldr1.x = ldr2.x-ldr1.width;
       }
    }

```

Many many thanks !
