@syncfusion/ej2-schedule 28.1.36 → 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.
@@ -2321,13 +2321,13 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
2321
2321
  if (e.event.target.classList.contains(WORK_CELLS_CLASS) && e.event.which !== 3) {
2322
2322
  this.parent.removeSelectedClass();
2323
2323
  EventHandler.add(this.parent.getContentTable(), 'mousemove', this.onMouseSelection, this);
2324
- EventHandler.add(this.parent.getContentTable(), 'mouseup', this.onMoveUp, this);
2324
+ EventHandler.add(this.parent.getContentTable(), 'mouseup mouseleave', this.onMoveUp, this);
2325
2325
  }
2326
2326
  if (e.event.target.classList.contains(ALLDAY_CELLS_CLASS) && e.event.which !== 3) {
2327
2327
  this.parent.removeSelectedClass();
2328
2328
  var allDayRow = this.parent.getAllDayRow();
2329
2329
  EventHandler.add(allDayRow, 'mousemove', this.onMouseSelection, this);
2330
- EventHandler.add(allDayRow, 'mouseup', this.onMoveUp, this);
2330
+ EventHandler.add(allDayRow, 'mouseup mouseleave', this.onMoveUp, this);
2331
2331
  }
2332
2332
  };
2333
2333
  KeyboardInteraction.prototype.onMouseSelection = function (e) {
@@ -2359,14 +2359,12 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
2359
2359
  var _this = this;
2360
2360
  var appointments = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_CLASS));
2361
2361
  removeClass(appointments, 'e-allow-select');
2362
- if (e.target.classList.contains(WORK_CELLS_CLASS)) {
2363
- EventHandler.remove(this.parent.getContentTable(), 'mousemove', this.onMouseSelection);
2364
- EventHandler.remove(this.parent.getContentTable(), 'mouseup', this.onMoveUp);
2365
- }
2362
+ EventHandler.remove(this.parent.getContentTable(), 'mousemove', this.onMouseSelection);
2363
+ EventHandler.remove(this.parent.getContentTable(), 'mouseup mouseleave', this.onMoveUp);
2366
2364
  if (e.target.classList.contains(ALLDAY_CELLS_CLASS)) {
2367
2365
  var allDayRow = this.parent.getAllDayRow();
2368
2366
  EventHandler.remove(allDayRow, 'mousemove', this.onMouseSelection);
2369
- EventHandler.remove(allDayRow, 'mouseup', this.onMoveUp);
2367
+ EventHandler.remove(allDayRow, 'mouseup mouseleave', this.onMoveUp);
2370
2368
  }
2371
2369
  if (this.isPreventAction(e)) {
2372
2370
  return;
@@ -25931,9 +25929,6 @@ var Month = /** @__PURE__ @class */ (function (_super) {
25931
25929
  args.scrollPosition.left;
25932
25930
  }
25933
25931
  }
25934
- else {
25935
- this.scrollToSelectedDate();
25936
- }
25937
25932
  this.retainScrollPosition();
25938
25933
  };
25939
25934
  Month.prototype.scrollToSelectedDate = function () {