@forcecalendar/interface 1.0.28 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/force-calendar-interface.esm.js +10 -6
- package/dist/force-calendar-interface.esm.js.map +1 -1
- package/dist/force-calendar-interface.umd.js +2 -2
- package/dist/force-calendar-interface.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ForceCalendar.js +2 -2
- package/src/core/BaseComponent.js +2 -2
- package/src/renderers/BaseViewRenderer.js +1 -2
- package/src/renderers/DayViewRenderer.js +2 -2
- package/src/renderers/WeekViewRenderer.js +2 -2
|
@@ -6476,10 +6476,12 @@ class z extends F {
|
|
|
6476
6476
|
this.addListener(this.container, "click", (e) => {
|
|
6477
6477
|
const t = e.target.closest(".fc-week-day-column");
|
|
6478
6478
|
if (!t || !this.container.contains(t) || e.target.closest(".fc-event")) return;
|
|
6479
|
-
const s = new Date(t.dataset.date), i = t.getBoundingClientRect()
|
|
6479
|
+
const s = new Date(t.dataset.date), i = t.getBoundingClientRect();
|
|
6480
|
+
this.container.querySelector("#week-scroll-container");
|
|
6481
|
+
const r = e.clientY - i.top;
|
|
6480
6482
|
s.setHours(
|
|
6481
|
-
Math.floor(
|
|
6482
|
-
Math.floor(
|
|
6483
|
+
Math.floor(r / this.hourHeight),
|
|
6484
|
+
Math.floor(r % this.hourHeight / (this.hourHeight / 60)),
|
|
6483
6485
|
0,
|
|
6484
6486
|
0
|
|
6485
6487
|
), this.stateManager.selectDate(s);
|
|
@@ -6617,10 +6619,12 @@ class L extends F {
|
|
|
6617
6619
|
this.addListener(this.container, "click", (e) => {
|
|
6618
6620
|
const t = e.target.closest(".fc-day-column");
|
|
6619
6621
|
if (!t || !this.container.contains(t) || e.target.closest(".fc-event")) return;
|
|
6620
|
-
const s = new Date(t.dataset.date), i = t.getBoundingClientRect()
|
|
6622
|
+
const s = new Date(t.dataset.date), i = t.getBoundingClientRect();
|
|
6623
|
+
this.container.querySelector("#day-scroll-container");
|
|
6624
|
+
const r = e.clientY - i.top;
|
|
6621
6625
|
s.setHours(
|
|
6622
|
-
Math.floor(
|
|
6623
|
-
Math.floor(
|
|
6626
|
+
Math.floor(r / this.hourHeight),
|
|
6627
|
+
Math.floor(r % this.hourHeight / (this.hourHeight / 60)),
|
|
6624
6628
|
0,
|
|
6625
6629
|
0
|
|
6626
6630
|
), this.stateManager.selectDate(s);
|