git ssb

16+

Dominic / patchbay



Commit f7fe8b6d565d3823c3d5cf96317c609472e7cdbf

/calendar : (fix) can shift-click before current day

mixmix committed on 7/26/2018, 11:17:04 AM
Parent: b01dbbea52f7a3b9f101ce6e29d8180184110ffb

Files changed

app/page/calendar.jschanged
app/page/calendar.jsView
@@ -220,9 +220,12 @@
220220 eventsOnDay.length ? '-events' : '',
221221 date >= range.gte && date < range.lt ? '-selected' : ''
222222 ],
223223 '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 + }
225228
226229 gte.set(date)
227230 lt.set(dateEnd)
228231 }

Built with git-ssb-web