From 857800e904be766d1a160b82f4e85e8f810e1ce1 Mon Sep 17 00:00:00 2001 From: rlx Date: Sat, 13 Jan 2018 11:03:29 +0100 Subject: [PATCH] make timeline not draggable and not selectable --- icf.css | 1 + icf.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/icf.css b/icf.css index 634d76d..6a642a6 100644 --- a/icf.css +++ b/icf.css @@ -76,6 +76,7 @@ em, i { #timeline > img { height: 64px; position: absolute; + user-select: none; } #menu { diff --git a/icf.js b/icf.js index c64dfee..e5d7631 100644 --- a/icf.js +++ b/icf.js @@ -208,7 +208,7 @@ loadText(function() { hashchange() loadTimeline(function() { window.addEventListener('resize', renderTimeline) - timeline.addEventListener('mousedown', function() { + timeline.addEventListener('dragstart', function() { return false }) timeline.addEventListener('mouseenter', start)