From 7fabe3094e60ac0040d19ab9dc60f40cc35f7ba3 Mon Sep 17 00:00:00 2001 From: manitzky Date: Thu, 10 Aug 2017 04:38:37 +1000 Subject: [PATCH] fix(gutter): gutter resize jump issue (#201) * fix for gutter resize * removed redundant call to updateGutterWidth --- lib/util/BlameGutter.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/util/BlameGutter.js b/lib/util/BlameGutter.js index 3d40e55..c0a03f2 100644 --- a/lib/util/BlameGutter.js +++ b/lib/util/BlameGutter.js @@ -187,6 +187,9 @@ export default class BlameGutter { } onResizeMove(e) { + if (!this.resizeStartX) { + return; + } const delta = e.pageX - this.resizeStartX; this.updateGutterWidth(this.resizeStartWidth + delta); }