From c228a191cb4b44cf0033c4519fe62004bc413b54 Mon Sep 17 00:00:00 2001 From: DD Date: Wed, 30 Aug 2017 10:56:30 -0400 Subject: [PATCH] fix lint --- src/containers/line-mode.jsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/containers/line-mode.jsx b/src/containers/line-mode.jsx index 1a84c394..030b33ba 100644 --- a/src/containers/line-mode.jsx +++ b/src/containers/line-mode.jsx @@ -59,18 +59,18 @@ class LineMode extends React.Component { const lineMode = this; this.tool.onMouseDown = function (event) { - if (event.event.button > 0) return; // only first mouse button + if (event.event.button > 0) return; // only first mouse button lineMode.onMouseDown(event); }; this.tool.onMouseMove = function (event) { lineMode.onMouseMove(event); }; this.tool.onMouseDrag = function (event) { - if (event.event.button > 0) return; // only first mouse button + if (event.event.button > 0) return; // only first mouse button lineMode.onMouseDrag(event); }; this.tool.onMouseUp = function (event) { - if (event.event.button > 0) return; // only first mouse button + if (event.event.button > 0) return; // only first mouse button lineMode.onMouseUp(event); }; @@ -187,8 +187,8 @@ class LineMode extends React.Component { // TODO don't erase the line if both ends are snapped to different points return; } else if ( - this.path.lastSegment.point.getDistance(this.path.segments[this.path.segments.length - 2].point, true) < - this.toleranceSquared()) { + this.path.lastSegment.point.getDistance(this.path.segments[this.path.segments.length - 2].point, true) < + this.toleranceSquared()) { this.path.removeSegment(this.path.segments.length - 1); return; }