From ff4fc26784f9ac1c921ba989189001400b0c0875 Mon Sep 17 00:00:00 2001 From: Max Lehmann Date: Thu, 11 Jun 2020 14:15:07 +0200 Subject: [PATCH] Update '12/dragable.js' --- 12/dragable.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/12/dragable.js b/12/dragable.js index 2fed6ae..096f296 100644 --- a/12/dragable.js +++ b/12/dragable.js @@ -73,8 +73,8 @@ makeDragable('#shell_03header', '#shell_03') /*sets offset parameters and starts listening for mouse-move*/ function startDrag2(x) { - x.preventDefault2(); - x.stopPropagation2(); + x.preventDefault(); + x.stopPropagation(); dragObj2 = document.querySelector(dragTarget2); dragObj2.style.position = "absolute"; let rect = dragObj2.getBoundingClientRect(); @@ -92,8 +92,8 @@ makeDragable('#shell_03header', '#shell_03') /*Drag object*/ function dragObject2(x) { - x.preventDefault2(); - x.stopPropagation2(); + x.preventDefault(); + x.stopPropagation(); if(dragObj2 == null) { return; // if there is no object being dragged then do nothing