Update '12/dragable.js'

master
Max Lehmann 5 years ago
parent ae7adb0305
commit 888dc6cbcb

@ -72,8 +72,8 @@ makeDragable('#shell_03header', '#shell_03')
/*sets offset parameters and starts listening for mouse-move*/ /*sets offset parameters and starts listening for mouse-move*/
function startDrag2(x) { function startDrag2(x) {
e.preventDefault(); x.preventDefault();
e.stopPropagation(); x.stopPropagation();
dragObj2 = document.querySelector(dragTarget); dragObj2 = document.querySelector(dragTarget);
dragObj2.style.position = "absolute"; dragObj2.style.position = "absolute";
let rect = dragObj2.getBoundingClientRect(); let rect = dragObj2.getBoundingClientRect();

Loading…
Cancel
Save