@syncfusion/ej2-schedule 28.1.37 → 28.1.38

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.
@@ -2291,13 +2291,13 @@ class KeyboardInteraction {
2291
2291
  if (e.event.target.classList.contains(WORK_CELLS_CLASS) && e.event.which !== 3) {
2292
2292
  this.parent.removeSelectedClass();
2293
2293
  EventHandler.add(this.parent.getContentTable(), 'mousemove', this.onMouseSelection, this);
2294
- EventHandler.add(this.parent.getContentTable(), 'mouseup', this.onMoveUp, this);
2294
+ EventHandler.add(this.parent.getContentTable(), 'mouseup mouseleave', this.onMoveUp, this);
2295
2295
  }
2296
2296
  if (e.event.target.classList.contains(ALLDAY_CELLS_CLASS) && e.event.which !== 3) {
2297
2297
  this.parent.removeSelectedClass();
2298
2298
  const allDayRow = this.parent.getAllDayRow();
2299
2299
  EventHandler.add(allDayRow, 'mousemove', this.onMouseSelection, this);
2300
- EventHandler.add(allDayRow, 'mouseup', this.onMoveUp, this);
2300
+ EventHandler.add(allDayRow, 'mouseup mouseleave', this.onMoveUp, this);
2301
2301
  }
2302
2302
  }
2303
2303
  onMouseSelection(e) {
@@ -2328,14 +2328,12 @@ class KeyboardInteraction {
2328
2328
  onMoveUp(e) {
2329
2329
  const appointments = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_CLASS));
2330
2330
  removeClass(appointments, 'e-allow-select');
2331
- if (e.target.classList.contains(WORK_CELLS_CLASS)) {
2332
- EventHandler.remove(this.parent.getContentTable(), 'mousemove', this.onMouseSelection);
2333
- EventHandler.remove(this.parent.getContentTable(), 'mouseup', this.onMoveUp);
2334
- }
2331
+ EventHandler.remove(this.parent.getContentTable(), 'mousemove', this.onMouseSelection);
2332
+ EventHandler.remove(this.parent.getContentTable(), 'mouseup mouseleave', this.onMoveUp);
2335
2333
  if (e.target.classList.contains(ALLDAY_CELLS_CLASS)) {
2336
2334
  const allDayRow = this.parent.getAllDayRow();
2337
2335
  EventHandler.remove(allDayRow, 'mousemove', this.onMouseSelection);
2338
- EventHandler.remove(allDayRow, 'mouseup', this.onMoveUp);
2336
+ EventHandler.remove(allDayRow, 'mouseup mouseleave', this.onMoveUp);
2339
2337
  }
2340
2338
  if (this.isPreventAction(e)) {
2341
2339
  return;
@@ -25010,9 +25008,6 @@ class Month extends ViewBase {
25010
25008
  args.scrollPosition.left;
25011
25009
  }
25012
25010
  }
25013
- else {
25014
- this.scrollToSelectedDate();
25015
- }
25016
25011
  this.retainScrollPosition();
25017
25012
  }
25018
25013
  scrollToSelectedDate() {