|
@@ -15,9 +15,12 @@ class SelectionHelper {
|
|
|
this.pointBottomRight = new Vector2();
|
|
|
|
|
|
this.isDown = false;
|
|
|
+ this.enabled = true;
|
|
|
|
|
|
this.onPointerDown = function ( event ) {
|
|
|
|
|
|
+ if ( this.enabled === false ) return;
|
|
|
+
|
|
|
this.isDown = true;
|
|
|
this.onSelectStart( event );
|
|
|
|
|
@@ -25,6 +28,8 @@ class SelectionHelper {
|
|
|
|
|
|
this.onPointerMove = function ( event ) {
|
|
|
|
|
|
+ if ( this.enabled === false ) return;
|
|
|
+
|
|
|
if ( this.isDown ) {
|
|
|
|
|
|
this.onSelectMove( event );
|
|
@@ -35,6 +40,8 @@ class SelectionHelper {
|
|
|
|
|
|
this.onPointerUp = function ( ) {
|
|
|
|
|
|
+ if ( this.enabled === false ) return;
|
|
|
+
|
|
|
this.isDown = false;
|
|
|
this.onSelectOver();
|
|
|
|