make timeline not draggable and not selectable

This commit is contained in:
rlx 2018-01-13 11:03:29 +01:00
parent d894978981
commit 857800e904
2 changed files with 2 additions and 1 deletions

View file

@ -76,6 +76,7 @@ em, i {
#timeline > img { #timeline > img {
height: 64px; height: 64px;
position: absolute; position: absolute;
user-select: none;
} }
#menu { #menu {

2
icf.js
View file

@ -208,7 +208,7 @@ loadText(function() {
hashchange() hashchange()
loadTimeline(function() { loadTimeline(function() {
window.addEventListener('resize', renderTimeline) window.addEventListener('resize', renderTimeline)
timeline.addEventListener('mousedown', function() { timeline.addEventListener('dragstart', function() {
return false return false
}) })
timeline.addEventListener('mouseenter', start) timeline.addEventListener('mouseenter', start)