@progress/kendo-charts 2.5.2 → 2.5.3
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.
|
@@ -544,10 +544,6 @@ var UserEvents = (function (Observable) {
|
|
|
544
544
|
continue;
|
|
545
545
|
}
|
|
546
546
|
|
|
547
|
-
if (eventTouch.type === 'pointer') {
|
|
548
|
-
this$1.surface.setPointerCapture(eventTouch.id);
|
|
549
|
-
}
|
|
550
|
-
|
|
551
547
|
var touch = new Touch(this$1, target, eventTouch);
|
|
552
548
|
this$1.touches.push(touch);
|
|
553
549
|
touch.press();
|
|
@@ -567,6 +563,8 @@ var UserEvents = (function (Observable) {
|
|
|
567
563
|
};
|
|
568
564
|
|
|
569
565
|
UserEvents.prototype._eachTouch = function _eachTouch (methodName, e) {
|
|
566
|
+
var this$1 = this;
|
|
567
|
+
|
|
570
568
|
var that = this,
|
|
571
569
|
dict = {},
|
|
572
570
|
touches = getTouches(e),
|
|
@@ -586,6 +584,11 @@ var UserEvents = (function (Observable) {
|
|
|
586
584
|
matchingTouch = dict[touchInfo.id];
|
|
587
585
|
|
|
588
586
|
if (matchingTouch) {
|
|
587
|
+
var shouldCapture = methodName === 'move' && touchInfo.type === 'pointer' && !this$1.surface.hasPointerCapture(touchInfo.id);
|
|
588
|
+
if (shouldCapture) {
|
|
589
|
+
this$1.surface.setPointerCapture(touchInfo.id);
|
|
590
|
+
}
|
|
591
|
+
|
|
589
592
|
matchingTouch[methodName](touchInfo);
|
|
590
593
|
}
|
|
591
594
|
}
|
|
@@ -524,10 +524,6 @@ export default class UserEvents extends Observable {
|
|
|
524
524
|
continue;
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
-
if (eventTouch.type === 'pointer') {
|
|
528
|
-
this.surface.setPointerCapture(eventTouch.id);
|
|
529
|
-
}
|
|
530
|
-
|
|
531
527
|
const touch = new Touch(this, target, eventTouch);
|
|
532
528
|
this.touches.push(touch);
|
|
533
529
|
touch.press();
|
|
@@ -566,6 +562,11 @@ export default class UserEvents extends Observable {
|
|
|
566
562
|
matchingTouch = dict[touchInfo.id];
|
|
567
563
|
|
|
568
564
|
if (matchingTouch) {
|
|
565
|
+
const shouldCapture = methodName === 'move' && touchInfo.type === 'pointer' && !this.surface.hasPointerCapture(touchInfo.id);
|
|
566
|
+
if (shouldCapture) {
|
|
567
|
+
this.surface.setPointerCapture(touchInfo.id);
|
|
568
|
+
}
|
|
569
|
+
|
|
569
570
|
matchingTouch[methodName](touchInfo);
|
|
570
571
|
}
|
|
571
572
|
}
|