TrackballControls should extend EventDispatcher (threejs)

Please see
https://github.com/mrdoob/three.js/blob/master/examples/js/controls/Trac
kballControls.js#L611

The prototype of THREE.TrackballControls is
THREE.EventDispatcher.prototype.
This commit is contained in:
Yubing (Tom) Dong
2014-11-11 17:22:07 -08:00
parent 39531c32fe
commit 792d0aa3c9
+1 -1
View File
@@ -6,7 +6,7 @@
/// <reference path="./three.d.ts" />
declare module THREE {
class TrackballControls {
class TrackballControls extends EventDispatcher {
constructor(object:Camera, domElement?:HTMLElement);
object:Camera;