# Delay on rollover with Laco's tween

**URL:** https://forum.kirupa.com/t/delay-on-rollover-with-lacos-tween/146186
**Category:** Uncategorized
**Created:** [April 28, 2005, 9:37pm UTC](https://forum.kirupa.com/t/delay-on-rollover-with-lacos-tween/146186 "2005-04-28T21:37:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Septunas](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Septunas](https://forum.kirupa.com/u/Septunas)
#### Post date: [April 28, 2005, 9:37pm UTC](https://forum.kirupa.com/t/delay-on-rollover-with-lacos-tween/146186/1 "2005-04-28T21:37:23Z")

</div>

Hi,  
I use laco’s tween class for a button color fade. A bit like on the Laco navigation itself : [http://laco.wz.cz/tween/](http://laco.wz.cz/tween/)

It works, only, when the mouse moves a little too fast over the button, it delays, like the mouse didn’t went over that button, what gives a pretty annoying effect, like a bug…  
this is the code I use :

[color=darkred] menu1.onRollOver = function ()  
{  
this.colorTo (0xFF0099, 0.1);  
}  
menu1.onRollOut = function ()  
{  
this.colorTo (0x171717, 5 );  
}[/color]  
[color=black][/color]  
Does that look familiar to somebody?
