fix for mouse events in firefox