Fixing mouse interaction with label dialog
This commit is contained in:
1 parent
7d2577b06f
commit
f4a77d6f4d
4 files changed
+69
-19
No files matched your search
@@ -105,6 +105,7 @@ function makeDraggable(element, options) {
|
||||
|
||||
$container.css('cursor', 'move');
|
||||
$element.css('cursor', 'move');
|
||||
$element.addClass('dragging');
|
||||
|
||||
reposition(elementLeft, elementTop);
|
||||
|
||||
@@ -125,6 +126,7 @@ function makeDraggable(element, options) {
|
||||
function stopMoving() {
|
||||
$container.css('cursor', 'default');
|
||||
$element.css('cursor', options.defaultElementCursor);
|
||||
$element.removeClass('dragging');
|
||||
|
||||
$(document).off('mousemove', moveHandler);
|
||||
$(document).off('touchmove', moveHandler);
|
||||
|
||||
Reference in new issue
Block a user