mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Use Point#equals() instead of direct comparison.
This commit is contained in:
parent
ace260a334
commit
8b4104fe19
1 changed files with 1 additions and 1 deletions
|
@ -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'))
|
||||
|
|
Loading…
Reference in a new issue