Commit f7fe8b6d565d3823c3d5cf96317c609472e7cdbf
/calendar : (fix) can shift-click before current day
mixmix committed on 7/26/2018, 11:17:04 AMParent: b01dbbea52f7a3b9f101ce6e29d8180184110ffb
Files changed
app/page/calendar.js | changed |
app/page/calendar.js | |||
---|---|---|---|
@@ -220,9 +220,12 @@ | |||
220 | 220 … | eventsOnDay.length ? '-events' : '', | |
221 | 221 … | date >= range.gte && date < range.lt ? '-selected' : '' | |
222 | 222 … | ], | |
223 | 223 … | 'ev-click': (ev) => { | |
224 | - if (ev.shiftKey) return lt.set(dateEnd) | ||
224 … | + if (ev.shiftKey) { | ||
225 … | + dateEnd >= resolve(lt) ? lt.set(dateEnd) : gte.set(date) | ||
226 … | + return | ||
227 … | + } | ||
225 | 228 … | ||
226 | 229 … | gte.set(date) | |
227 | 230 … | lt.set(dateEnd) | |
228 | 231 … | } |
Built with git-ssb-web