From 26b44dd3a8a6baf03fe771748dead242d80df172 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 14 Jul 2020 13:03:16 +0200 Subject: Remove surpurflous statement. --- static/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'static') diff --git a/static/script.js b/static/script.js index 7780434c..0f9dace9 100644 --- a/static/script.js +++ b/static/script.js @@ -154,8 +154,6 @@ class EventCreator { event.dataset.time1 = time; event.dataset.time2 = time; - event.style.pointerEvents = "none"; - /* ---------------------------------------- */ this.appendChild(event); @@ -170,6 +168,8 @@ class EventCreator { /* Makes all current events transparent when dragging over them. Without this weird stuff happens when moving over them + + This includes ourselves. */ for (let e of this.children) { e.style.pointerEvents = "none"; -- cgit v1.2.3