Added a tolerable fix for the firefox mouse events