@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.
@@ -2373,7 +2373,7 @@ class Observer {
2373
2373
  if (eventsArr) {
2374
2374
  for (let i = 0; i < eventsArr.length; i++) {
2375
2375
  const curContext = eventsArr[parseInt(i.toString(), 10)].context;
2376
- if (curContext && curContext.detectFunction && curContext.randomId && !curContext.isRendered) {
2376
+ if (curContext && curContext.detectFunction && curContext.randomId && curContext.isReactMock) {
2377
2377
  this.off('notifyExternalChange', curContext.detectFunction, curContext.randomId);
2378
2378
  i--;
2379
2379
  }
@@ -4314,7 +4314,7 @@ class Browser {
4314
4314
  browserDetails['isTouch'] = true;
4315
4315
  browserDetails['isPointer'] = true;
4316
4316
  }
4317
- if (window && window.Capacitor && window.Capacitor.getPlatform() === 'ios') {
4317
+ if (typeof window !== 'undefined' && window.Capacitor && window.Capacitor.getPlatform() === 'ios') {
4318
4318
  browserDetails['isPointer'] = false;
4319
4319
  }
4320
4320
  if ('undefined' === typeof browserDetails[`${key}`]) {
@@ -8060,7 +8060,13 @@ let Draggable = Draggable_1 = class Draggable extends Base {
8060
8060
  if (this.dragArea && typeof this.dragArea !== 'string' && this.dragArea.classList.contains('e-kanban-content') && this.dragArea.style.position === 'relative') {
8061
8061
  draEleTop += this.dragArea.scrollTop;
8062
8062
  }
8063
- const dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
8063
+ let dragValue = this.getProcessedPositionValue({ top: draEleTop + 'px', left: draEleLeft + 'px' });
8064
+ if (this.isPreventScroll) {
8065
+ dragValue = this.getProcessedPositionValue({
8066
+ top: (this.position.top - this.parentClientRect.top - 2) + 'px',
8067
+ left: (this.position.left - this.parentClientRect.left - 2) + 'px'
8068
+ });
8069
+ }
8064
8070
  setStyleAttribute(helperElement, this.getDragPosition(dragValue));
8065
8071
  if (!this.elementInViewport(helperElement) && this.enableAutoScroll && !this.helperElement.classList.contains('e-treeview')) {
8066
8072
  this.helperElement.scrollIntoView();
@@ -8384,6 +8390,9 @@ __decorate$2([
8384
8390
  __decorate$2([
8385
8391
  Property(true)
8386
8392
  ], Draggable.prototype, "isPreventSelect", void 0);
8393
+ __decorate$2([
8394
+ Property(false)
8395
+ ], Draggable.prototype, "isPreventScroll", void 0);
8387
8396
  __decorate$2([
8388
8397
  Event$1()
8389
8398
  ], Draggable.prototype, "drag", void 0);