diff --git a/12/dragable.js b/12/dragable.js index 0d4adca..9039a3f 100644 --- a/12/dragable.js +++ b/12/dragable.js @@ -72,8 +72,8 @@ makeDragable('#shell_03header', '#shell_03') /*sets offset parameters and starts listening for mouse-move*/ function startDrag2(x) { - e.preventDefault(); - e.stopPropagation(); + x.preventDefault(); + x.stopPropagation(); dragObj2 = document.querySelector(dragTarget); dragObj2.style.position = "absolute"; let rect = dragObj2.getBoundingClientRect();