From 9f0070751a7718b61a0227cc7436428ff605c390 Mon Sep 17 00:00:00 2001 From: Florian Sellmayr Date: Thu, 9 Jul 2015 09:28:40 +0200 Subject: [PATCH] improve code style --- src/dragdealer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dragdealer.js b/src/dragdealer.js index 1e6f8e5..afc5c79 100644 --- a/src/dragdealer.js +++ b/src/dragdealer.js @@ -415,7 +415,8 @@ Dragdealer.prototype = { this.startDrag(); }, onDocumentMouseMove: function(e) { - if((e.clientX - this.dragStartPosition.x) === 0 && (e.clientY - this.dragStartPosition.y) === 0) { + if ((e.clientX - this.dragStartPosition.x) === 0 && + (e.clientY - this.dragStartPosition.y) === 0) { // This is required on some Windows8 machines that get mouse move events without actual mouse movement return; }