From c44b9b254e4589833239e1899f69fddb8c6c0883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 8 May 2011 17:32:59 +0100 Subject: [PATCH] Fix error in ToolEvent#delta. --- src/tool/ToolEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tool/ToolEvent.js b/src/tool/ToolEvent.js index b68b1fec..08117090 100644 --- a/src/tool/ToolEvent.js +++ b/src/tool/ToolEvent.js @@ -127,7 +127,7 @@ var ToolEvent = this.ToolEvent = Base.extend({ // Instead, keep calculating the delta each time, so the result can be // directly modified by the script without changing the internal values. // We could cache this and use clone, but this is almost as fast... - return this._delta && this.tool.lastPoint + return !this._delta && this.tool.lastPoint ? this.tool.point.subtract(this.tool.lastPoint) : this._delta; },