@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.
- package/bin/syncfusion-license.js +1 -1
- package/dist/ej2-base.min.js +2 -2
- package/dist/ej2-base.umd.min.js +2 -2
- package/dist/ej2-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-base.es2015.js +12 -3
- package/dist/es6/ej2-base.es2015.js.map +1 -1
- package/dist/es6/ej2-base.es5.js +11 -2
- package/dist/es6/ej2-base.es5.js.map +1 -1
- package/dist/global/ej2-base.min.js +2 -2
- package/dist/global/ej2-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +14 -20
- package/src/browser.js +1 -1
- package/src/draggable-model.d.ts +7 -0
- package/src/draggable.d.ts +6 -0
- package/src/draggable.js +9 -0
- package/src/observer.js +1 -1
|
@@ -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 &&
|
|
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
|
-
|
|
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);
|