mrdoob/three.js — pull request #3758 by dyf (2013-08-14 19:25:25+00:00)
Title: Screen size computation in TrackballControls.js

Screen size computation in TrackballControls.js is assuming that the container is the window, rather than this.domElement. If you embed the renderer in something aside from the window, the projection code uses window dimensions rather than container dimensions. This seems to work in latest Chrome and FF.