Update '12/dragable.js'

master
Max Lehmann 5 years ago
parent 1c884fd8dc
commit 3d19a0f3d6

@ -73,8 +73,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) {
x.preventDefault(); x.preventDefault2();
x.stopPropagation(); x.stopPropagation2();
dragObj2 = document.querySelector(dragTarget2); dragObj2 = document.querySelector(dragTarget2);
dragObj2.style.position = "absolute"; dragObj2.style.position = "absolute";
let rect = dragObj2.getBoundingClientRect(); let rect = dragObj2.getBoundingClientRect();
@ -92,8 +92,8 @@ makeDragable('#shell_03header', '#shell_03');
/*Drag object*/ /*Drag object*/
function dragObject2(x) { function dragObject2(x) {
x.preventDefault(); x.preventDefault2();
x.stopPropagation(); x.stopPropagation2();
if(dragObj2 == null) { if(dragObj2 == null) {
return; // if there is no object being dragged then do nothing return; // if there is no object being dragged then do nothing

Loading…
Cancel
Save