Tentone il y a 11 mois
Parent
commit
521b3caa3d
3 fichiers modifiés avec 6 ajouts et 6 suppressions
  1. 3 3
      build/escher.js
  2. 1 1
      source/Renderer.js
  3. 2 2
      source/controls/ViewportControls.js

+ 3 - 3
build/escher.js

@@ -2410,8 +2410,8 @@
 	ViewportControls.RECENTER_CANVAS = 1;
 
 	/**
-	 * Viewport should automatically cente ron the pointer position.
-	 * 
+	 * Viewport should automatically center on the pointer position.
+	 *
 	 * The viewport will simulataniously move to the pointer position while scalling.
 	 *
 	 * For some application its easier to focus the target if the viewport moves to the pointer location while scalling.
@@ -2692,7 +2692,7 @@
 		});
 		timer.start();
 
-		return timer;
+		return {timer: timer, controls: controls};
 	};
 
 	/**

+ 1 - 1
source/Renderer.js

@@ -138,7 +138,7 @@ Renderer.prototype.createRenderLoop = function(group, viewport, onUpdate)
 	});
 	timer.start();
 
-	return timer;
+	return {timer: timer, controls: controls};
 };
 
 /**

+ 2 - 2
source/controls/ViewportControls.js

@@ -102,8 +102,8 @@ ViewportControls.RECENTER_NONE = 0;
 ViewportControls.RECENTER_CANVAS = 1;
 
 /**
- * Viewport should automatically cente ron the pointer position.
- * 
+ * Viewport should automatically center on the pointer position.
+ *
  * The viewport will simulataniously move to the pointer position while scalling.
  *
  * For some application its easier to focus the target if the viewport moves to the pointer location while scalling.