Update '12/dragable.js'

master
Max Lehmann 5 years ago
parent 260c755ccd
commit 850ffb13f4

@ -66,8 +66,8 @@ makeDragable('#shell_03header', '#shell_03')
let xOffset2 = 0; //used to prevent dragged object jumping to mouse location
let yOffset2 = 0;
document.querySelector(dragHandle).addEventListener("mousedown", startDrag, true);
document.querySelector(dragHandle).addEventListener("touchstart", startDrag, true);
document.querySelector(dragHandle2).addEventListener("mousedown", startDrag, true);
document.querySelector(dragHandle2).addEventListener("touchstart", startDrag, true);
/*sets offset parameters and starts listening for mouse-move*/
function startDrag(x) {

Loading…
Cancel
Save