Add TODO comment about mousedown events not having delta set the first time.

This commit is contained in:
Jürg Lehni 2011-06-02 15:38:12 +01:00
parent 2ab7568d5d
commit 99e4cc7645

View file

@ -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) {