From 888dc6cbcb92f0920659c5e9a72f64c924b69235 Mon Sep 17 00:00:00 2001 From: Max Lehmann Date: Thu, 11 Jun 2020 12:23:33 +0200 Subject: [PATCH] Update '12/dragable.js' --- 12/dragable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();