Allow releasing mouse anywhere to stop bracket dragging

We can do this now since the bracket is now clamped inside it's area,
so releasing the mouse outside of it won't hide the bracket
This commit is contained in:
小太
2013-10-20 20:46:34 +11:00
parent 54042f637c
commit 9d8a005e13

View File

@@ -59,8 +59,6 @@
innerX = e.pageX - this.offsetLeft;
innerY = e.pageY - this.offsetTop;
isMouseDown = true;
}).on('mouseup', function () {
isMouseDown = false;
});
$(document).on('mousemove', function (e) {
@@ -74,6 +72,8 @@
top: position.top
});
}
}).on('mouseup', function () {
isMouseDown = false;
});
}