Skip to content

Commit

Permalink
improve code style
Browse files Browse the repository at this point in the history
  • Loading branch information
flosell committed Jul 9, 2015
1 parent 6179934 commit 9f00707
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dragdealer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9f00707

Please sign in to comment.