Commit b7b25369 by Valera Rozuvan Committed by Alexander Kryklia

Added mouse event handlers to container of draggable. Now it is easier to…

Added mouse event handlers to container of draggable. Now it is easier to initiate a dragging operation.
parent 5c588812
...@@ -208,6 +208,10 @@ define(['logme', 'update_input'], function (logme, updateInput) { ...@@ -208,6 +208,10 @@ define(['logme', 'update_input'], function (logme, updateInput) {
draggableObj.iconEl.mouseup(mouseUp); draggableObj.iconEl.mouseup(mouseUp);
draggableObj.iconEl.mousemove(mouseMove); draggableObj.iconEl.mousemove(mouseMove);
draggableObj.containerEl.mousedown(mouseDown);
draggableObj.containerEl.mouseup(mouseUp);
draggableObj.containerEl.mousemove(mouseMove);
inContainer = true; inContainer = true;
mousePressed = false; mousePressed = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment