aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2016-12-16 13:57:57 +0100
committerNoah Loomans <noahloomans@gmail.com>2016-12-16 13:57:57 +0100
commit31be7d12b8c9b1a2ad163e65808a28656adfbb45 (patch)
tree55a8d9d2e3e07e658a8d7a85be4926ba0ce75beb /public/javascripts/main.js
parentb6542a78c14b3d2e350b6620272a88094abda1c1 (diff)
add ability to scroll week selector away
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index b6d4f09..7d2c8bb 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -3,6 +3,7 @@ const search = require('./search')
const schedule = require('./schedule')
const weekSelector = require('./weekSelector')
const favorite = require('./favorite')
+const scrollSnap = require('./scrollSnap')
const state = {}
@@ -11,6 +12,7 @@ window.require = require
frontpage.show()
weekSelector.updateCurrentWeek()
+scrollSnap.startListening()
if (favorite.get() != null) {
state.selectedItem = favorite.get()