mrdoob/three.js — pull request #3757 by kevinoe (2013-08-14 15:20:03+00:00)
Title: Further trackball fixes

@bsenftner - I think I finally have a fix for scrolling. Could you test?

==============================================
Previously the screen variable was not updated on scroll, which meant that top & left could be wrohng. This updates it before access in the mouse events.

The relative position is then

event.pageX - screen.left, event.pageY - screen.top

I also added a snippet to calculate pageX/Y if needed