@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
package/dist/es6/ej2-base.es5.js
CHANGED
|
@@ -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 &&
|
|
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);
|