From d729f5f3d3fd97fb6e9ca2550b7874acde98f98f Mon Sep 17 00:00:00 2001 From: murtaugh Date: Thu, 11 Jun 2020 14:36:19 +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 704b94b..b3d1405 100644 --- a/12/dragable.js +++ b/12/dragable.js @@ -1,8 +1,8 @@ - function makeDragable(dragHandle, dragTarget) { - let dragObj = null; //object to be moved - let xOffset = 0; //used to prevent dragged object jumping to mouse location - let yOffset = 0; +function makeDragable(dragHandle, dragTarget) { + var dragObj = null; //object to be moved + var xOffset = 0; //used to prevent dragged object jumping to mouse location + var yOffset = 0; document.querySelector(dragHandle).addEventListener("mousedown", startDrag, true); document.querySelector(dragHandle).addEventListener("touchstart", startDrag, true);