Use the scrolledTo event instead: http://jsfiddle.net/NmudS/1134/

On Sat, Feb 4, 2012 at 2:56 PM, hamburger <[email protected]> wrote:

> Hello,
> I have the problem to change an element with Scrolling.
>
> I would like to set the element in the menue as active after scrolling
> to the href-property
>
>
>    // animate scrolling
>    var mySmoothScroll = new Fx.SmoothScroll({
>        wheelStops: true,
>        onComplete: function(e){
>            console.log("smoooth done  ",e);
>            window.getElement(e).setClass('active');
>        }
>    });
>
> http://jsfiddle.net/NmudS/1133/
>

Reply via email to