mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Fix error in ToolEvent#delta.
This commit is contained in:
parent
4d6ca5c8c6
commit
c44b9b254e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue