http://typotron.com/test/test.html There are 3 links, with event mouseovers and mouseouts. When you hover over a link, the arrow at the top moves to the position above the corresponding link. My problem is that when you move between the 2nd and 3rd links, there is a flickering effect. I''m assuming this is caused by the mouseout automatically trying to send the arrow back to its initial position. Does anyone know if there is a way to tell it to ignore this effect if i am quickly tabbing between the 2nd and 3rd links? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Ninjoah a écrit :> Does anyone know if there is a way to tell it to ignore this effect if > i am quickly tabbing between the 2nd and 3rd links?Delay the ''snap back up'' operation, and cancel it when you mouseover another link. -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
I tried canceling the effect with the queue, should I try with something else? -noah On May 17, 5:15 am, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> Ninjoah a écrit : > > > Does anyone know if there is a way to tell it to ignore this effect if > > i am quickly tabbing between the 2nd and 3rd links? > > Delay the ''snap back up'' operation, and cancel it when you mouseover > another link. > > -- > Christophe Porteneuve aka TDD > t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
It could be something along the following lines: var currentItem, snapBackTimer; // On mouseout snapBackTimer = setTimeout(yourSnapBackCall, 500); // On mouseover snapBackTimer && clearTimeout(snapBackTimer); snapBackTimer = null; if (currentItem == enteredItem) return; currentItem = enteredItem; yourSnapDownCall(); -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
That did the trick, thanks for the help. On May 17, 5:22 pm, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> It could be something along the following lines: > > var currentItem, snapBackTimer; > > // On mouseout > snapBackTimer = setTimeout(yourSnapBackCall, 500); > > // On mouseover > snapBackTimer && clearTimeout(snapBackTimer); > snapBackTimer = null; > if (currentItem == enteredItem) > return; > currentItem = enteredItem; > yourSnapDownCall(); > > -- > Christophe Porteneuve aka TDD > t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---