diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-30 20:39:02 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-30 20:39:02 +0200 |
commit | cb103eb82ee59bfc4409b65d0d38e86d1218e355 (patch) | |
tree | 5342ee746c3669907b72f00f2eddb33a945ff51d | |
parent | Resolve TODO's in test dir. (diff) | |
download | calp-cb103eb82ee59bfc4409b65d0d38e86d1218e355.tar.gz calp-cb103eb82ee59bfc4409b65d0d38e86d1218e355.tar.xz |
Reslove some TODO's in script.js.
-rw-r--r-- | static/script.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/static/script.js b/static/script.js index 35e927f5..7397dade 100644 --- a/static/script.js +++ b/static/script.js @@ -151,7 +151,12 @@ class EventCreator { /* [0, 1) -- where are we in the container */ /* Ronud to force steps of quarters */ - /* TODO possibly have floor_time instead */ + /* NOTE for in-day events a floor here work better, while for + all day events I want a round, but which has the tip over point + around 0.7 instead of 0.5. + It might also be an idea to subtract a tiny bit from the short events + mouse position, since I feel I always get to late starts. + */ let time = round_time(pos_in(this, e), round_to); event.dataset.time1 = time; @@ -262,9 +267,6 @@ var current_cell = false function update_current_time_bar () { var now = new Date() - /* TODO - The bar and box doesn't get cleared when we leave our time interval. - */ if (! (start_time <= now.getTime() && now.getTime() < end_time)) return; |