@forcecalendar/interface 1.0.29 → 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.
@@ -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(), r = this.container.querySelector("#week-scroll-container"), n = e.clientY - i.top + (r ? r.scrollTop : 0);
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(n / this.hourHeight),
6482
- Math.floor(n % this.hourHeight / (this.hourHeight / 60)),
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(), r = this.container.querySelector("#day-scroll-container"), n = e.clientY - i.top + (r ? r.scrollTop : 0);
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(n / this.hourHeight),
6623
- Math.floor(n % this.hourHeight / (this.hourHeight / 60)),
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);