mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
Fix a bug in #getFixedDistance() where equals was used on numbers (Java port left-over).
This commit is contained in:
parent
101cb11973
commit
702899b382
1 changed files with 1 additions and 2 deletions
|
@ -47,8 +47,7 @@ var ToolHandler = this.ToolHandler = Base.extend({
|
|||
},
|
||||
|
||||
getFixedDistance: function() {
|
||||
if (this._minDistance != null
|
||||
&& this._minDistance.equals(this._maxDistance))
|
||||
if (this._minDistance == this._maxDistance)
|
||||
return this._minDistance;
|
||||
return null;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue