indigo
unread,Nov 5, 2009, 8:13:05 PM11/5/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Prototype & script.aculo.us
When you have some text input fields and you observe it for
mouseenters or leaves, it doesn't work correctly under Firefox 2.0+.
Everything works great under Safari, IE and Chrome.
I guess this problem has something to do with the famous Firefox
cursor bug.
This works incorrect (only when you move very slowly over the input
fields, and event will fire):
[CODE]
$$('input').each(function(current) {
Event.observe(current,'mouseenter',function(event) {
event.findElement().addClassName('doesntwork');
});
Event.observe(current,'mouseleave',function(event) {
event.findElement().removeClassName('doesntwork');
});
});
[/CODE]
This works correct:
[CODE]
$$('input').each(function(current) {
Event.observe(current,'mouseenter',function(event) {
console.log('enter');
});
Event.observe(current,'mouseleave',function(event) {
console.log('leave');
});
});
[/CODE]
If someone could find a fix for this, that would really help me out.
Thanks!