mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Add TODO comment about mousedown events not having delta set the first time.
This commit is contained in:
parent
2ab7568d5d
commit
99e4cc7645
1 changed files with 1 additions and 0 deletions
|
@ -295,6 +295,7 @@ var Tool = this.Tool = Base.extend({
|
|||
}
|
||||
// Make sure mousemove events have lastPoint set even for the first move
|
||||
// so event.delta is always defined for them.
|
||||
// TODO: Decide wether mousedown also should always have delta set.
|
||||
this._lastPoint = start && type == 'mousemove' ? pt : this._point;
|
||||
this._point = pt;
|
||||
switch (type) {
|
||||
|
|
Loading…
Reference in a new issue