Account for scrolling in mouse coordinate calculations
Fix mouse events in firefox