Use Point#equals() instead of direct comparison.

This commit is contained in:
Jürg Lehni 2013-02-14 22:38:08 -08:00
parent ace260a334
commit 8b4104fe19

View file

@ -363,7 +363,7 @@ var Tool = this.Tool = PaperScopeItem.extend(/** @lends Tool# */{
case 'mouseup':
// If the last mouse drag happened in a different place, call mouse
// drag first, then mouse up.
if ((this._point.x != pt.x || this._point.y != pt.y)
if (!pt.equals(this._point)
&& this._updateEvent('mousedrag', pt, this.minDistance,
this.maxDistance, false, false, false)) {
if (this.responds('mousedrag'))