@progress/kendo-charts 2.4.1 → 2.4.2
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.
|
@@ -513,49 +513,47 @@ var UserEvents = (function (Observable) {
|
|
|
513
513
|
};
|
|
514
514
|
|
|
515
515
|
UserEvents.prototype._start = function _start (e) {
|
|
516
|
-
var
|
|
517
|
-
idx = 0,
|
|
518
|
-
filter = that.filter,
|
|
519
|
-
target,
|
|
520
|
-
touches = getTouches(e),
|
|
521
|
-
length = touches.length,
|
|
522
|
-
touch,
|
|
523
|
-
which = e.which;
|
|
516
|
+
var this$1 = this;
|
|
524
517
|
|
|
525
|
-
if (which && which > 1 ||
|
|
518
|
+
if (e.which && e.which > 1 || this._maxTouchesReached()) {
|
|
526
519
|
return;
|
|
527
520
|
}
|
|
528
521
|
|
|
529
522
|
UserEvents.current = null;
|
|
530
|
-
|
|
523
|
+
this.currentTarget = e.currentTarget;
|
|
531
524
|
|
|
532
|
-
if (
|
|
525
|
+
if (this.stopPropagation) {
|
|
533
526
|
e.stopPropagation();
|
|
534
527
|
}
|
|
535
528
|
|
|
536
|
-
|
|
537
|
-
|
|
529
|
+
var target;
|
|
530
|
+
var eventTouches = getTouches(e);
|
|
531
|
+
for (var idx = 0; idx < eventTouches.length; idx++) {
|
|
532
|
+
if (this$1._maxTouchesReached()) {
|
|
538
533
|
break;
|
|
539
534
|
}
|
|
540
535
|
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
target = touch.currentTarget;
|
|
536
|
+
var eventTouch = eventTouches[idx];
|
|
537
|
+
if (this$1.filter) {
|
|
538
|
+
target = eventTouch.currentTarget;
|
|
545
539
|
} else {
|
|
546
|
-
target =
|
|
540
|
+
target = this$1.element;
|
|
547
541
|
}
|
|
548
542
|
|
|
549
543
|
if (target && target.length === 0) {
|
|
550
544
|
continue;
|
|
551
545
|
}
|
|
552
546
|
|
|
553
|
-
|
|
554
|
-
|
|
547
|
+
if (eventTouch.type === 'pointer') {
|
|
548
|
+
this$1.surface.setPointerCapture(eventTouch.id);
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
var touch = new Touch(this$1, target, eventTouch);
|
|
552
|
+
this$1.touches.push(touch);
|
|
555
553
|
touch.press();
|
|
556
554
|
|
|
557
|
-
if (
|
|
558
|
-
|
|
555
|
+
if (this$1._isMultiTouch()) {
|
|
556
|
+
this$1.notify('gesturestart', {});
|
|
559
557
|
}
|
|
560
558
|
}
|
|
561
559
|
};
|
|
@@ -495,49 +495,45 @@ export default class UserEvents extends Observable {
|
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
_start(e) {
|
|
498
|
-
|
|
499
|
-
idx = 0,
|
|
500
|
-
filter = that.filter,
|
|
501
|
-
target,
|
|
502
|
-
touches = getTouches(e),
|
|
503
|
-
length = touches.length,
|
|
504
|
-
touch,
|
|
505
|
-
which = e.which;
|
|
506
|
-
|
|
507
|
-
if (which && which > 1 || that._maxTouchesReached()) {
|
|
498
|
+
if (e.which && e.which > 1 || this._maxTouchesReached()) {
|
|
508
499
|
return;
|
|
509
500
|
}
|
|
510
501
|
|
|
511
502
|
UserEvents.current = null;
|
|
512
|
-
|
|
503
|
+
this.currentTarget = e.currentTarget;
|
|
513
504
|
|
|
514
|
-
if (
|
|
505
|
+
if (this.stopPropagation) {
|
|
515
506
|
e.stopPropagation();
|
|
516
507
|
}
|
|
517
508
|
|
|
518
|
-
|
|
519
|
-
|
|
509
|
+
let target;
|
|
510
|
+
const eventTouches = getTouches(e);
|
|
511
|
+
for (let idx = 0; idx < eventTouches.length; idx++) {
|
|
512
|
+
if (this._maxTouchesReached()) {
|
|
520
513
|
break;
|
|
521
514
|
}
|
|
522
515
|
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
target = touch.currentTarget;
|
|
516
|
+
const eventTouch = eventTouches[idx];
|
|
517
|
+
if (this.filter) {
|
|
518
|
+
target = eventTouch.currentTarget;
|
|
527
519
|
} else {
|
|
528
|
-
target =
|
|
520
|
+
target = this.element;
|
|
529
521
|
}
|
|
530
522
|
|
|
531
523
|
if (target && target.length === 0) {
|
|
532
524
|
continue;
|
|
533
525
|
}
|
|
534
526
|
|
|
535
|
-
|
|
536
|
-
|
|
527
|
+
if (eventTouch.type === 'pointer') {
|
|
528
|
+
this.surface.setPointerCapture(eventTouch.id);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
const touch = new Touch(this, target, eventTouch);
|
|
532
|
+
this.touches.push(touch);
|
|
537
533
|
touch.press();
|
|
538
534
|
|
|
539
|
-
if (
|
|
540
|
-
|
|
535
|
+
if (this._isMultiTouch()) {
|
|
536
|
+
this.notify('gesturestart', {});
|
|
541
537
|
}
|
|
542
538
|
}
|
|
543
539
|
}
|