@syncfusion/ej2-base 27.1.53 → 27.1.55

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.
@@ -2413,7 +2413,7 @@ var Observer = /** @__PURE__ @class */ (function () {
2413
2413
  if (eventsArr) {
2414
2414
  for (var i = 0; i < eventsArr.length; i++) {
2415
2415
  var curContext = eventsArr[parseInt(i.toString(), 10)].context;
2416
- if (curContext && curContext.detectFunction && curContext.randomId && !curContext.isRendered) {
2416
+ if (curContext && curContext.detectFunction && curContext.randomId && curContext.isReactMock) {
2417
2417
  this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId);
2418
2418
  i--;
2419
2419
  }
@@ -4372,7 +4372,7 @@ var Browser = /** @__PURE__ @class */ (function () {
4372
4372
  browserDetails['isTouch'] = true;
4373
4373
  browserDetails['isPointer'] = true;
4374
4374
  }
4375
- if (window && window.Capacitor && window.Capacitor.getPlatform() === 'ios') {
4375
+ if (typeof window !== 'undefined' && window.Capacitor && window.Capacitor.getPlatform() === 'ios') {
4376
4376
  browserDetails['isPointer'] = false;
4377
4377
  }
4378
4378
  if ('undefined' === typeof browserDetails["" + key]) {
@@ -8154,6 +8154,12 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
8154
8154
  draEleTop += this.dragArea.scrollTop;
8155
8155
  }
8156
8156
  var dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
8157
+ if (this.isPreventScroll) {
8158
+ dragValue = this.getProcessedPositionValue({
8159
+ top: (this.position.top - this.parentClientRect.top - 2) + 'px',
8160
+ left: (this.position.left - this.parentClientRect.left - 2) + 'px'
8161
+ });
8162
+ }
8157
8163
  setStyleAttribute(helperElement, this.getDragPosition(dragValue));
8158
8164
  if (!this.elementInViewport(helperElement) && this.enableAutoScroll && !this.helperElement.classList.contains('e-treeview')) {
8159
8165
  this.helperElement.scrollIntoView();
@@ -8478,6 +8484,9 @@ var Draggable = /** @__PURE__ @class */ (function (_super) {
8478
8484
  __decorate$2([
8479
8485
  Property(true)
8480
8486
  ], Draggable.prototype, "isPreventSelect", void 0);
8487
+ __decorate$2([
8488
+ Property(false)
8489
+ ], Draggable.prototype, "isPreventScroll", void 0);
8481
8490
  __decorate$2([
8482
8491
  Event$1()
8483
8492
  ], Draggable.prototype, "drag", void 0);