targetj 1.0.189 → 1.0.190

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.
@@ -36,9 +36,9 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
36
36
  pinchDelta: 0,
37
37
  key: '',
38
38
  manualMomentumFlag: false,
39
- orientation: "none",
40
- dir: "",
41
- source: ""
39
+ orientation: 'none',
40
+ dir: '',
41
+ source: ''
42
42
  };
43
43
  this.lastEvent = undefined;
44
44
  this.touchTimeStamp = 0;
@@ -54,10 +54,10 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
54
54
  this.canFindHandlers = true;
55
55
  this.swipeStartX = 0;
56
56
  this.swipeStartY = 0;
57
- this.currentEventName = "";
58
- this.currentEventType = "";
57
+ this.currentEventName = '';
58
+ this.currentEventType = '';
59
59
  this.currentEventTarget = undefined;
60
- this.currentKey = "";
60
+ this.currentKey = '';
61
61
  this.currentHandlers = {
62
62
  touch: null,
63
63
  scrollLeft: null,
@@ -212,9 +212,10 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
212
212
  this.currentTouch.deltaY = 0;
213
213
  this.currentTouch.deltaX = 0;
214
214
  this.currentTouch.pinchDelta = 0;
215
+ this.currentTouch.dir = '';
215
216
  this.touchTimeStamp = 0;
216
217
  }
217
- (0, _App.getRunScheduler)().schedule(10, "scroll decay");
218
+ (0, _App.getRunScheduler)().schedule(10, 'scroll decay');
218
219
  }
219
220
  }
220
221
  }, {
@@ -262,10 +263,10 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
262
263
  this.currentHandlers.end = undefined;
263
264
  this.currentKey = this.currentTouch.key;
264
265
  if (this.eventQueue.length === 0) {
265
- this.currentEventName = "";
266
- this.currentEventType = "";
266
+ this.currentEventName = '';
267
+ this.currentEventType = '';
267
268
  this.currentEventTarget = undefined;
268
- this.currentKey = "";
269
+ this.currentKey = '';
269
270
  return;
270
271
  }
271
272
  var lastEvent = this.eventQueue.shift();
@@ -284,7 +285,7 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
284
285
  this.currentEventName = lastEvent.eventName;
285
286
  this.currentEventType = lastEvent.eventType;
286
287
  this.currentEventTarget = lastEvent.eventTarget;
287
- this.currentTouch.key = "";
288
+ this.currentTouch.key = '';
288
289
  }
289
290
  }, {
290
291
  key: "handleDocEvent",
@@ -466,7 +467,7 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
466
467
  });
467
468
  break;
468
469
  }
469
- (0, _App.getRunScheduler)().schedule(0, "".concat(originalName, "-").concat(eventName, "-").concat((event.target.tagName || "").toUpperCase()));
470
+ (0, _App.getRunScheduler)().schedule(0, "".concat(originalName, "-").concat(eventName, "-").concat((event.target.tagName || '').toUpperCase()));
470
471
  }
471
472
  }, {
472
473
  key: "resizeRoot",
@@ -515,9 +516,9 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
515
516
  pinchDelta: 0,
516
517
  key: '',
517
518
  manualMomentumFlag: false,
518
- orientation: "none",
519
- dir: "",
520
- source: ""
519
+ orientation: 'none',
520
+ dir: '',
521
+ source: ''
521
522
  };
522
523
  }
523
524
  }, {
@@ -798,14 +799,14 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
798
799
  period = startPeriod < 250 ? _TUtil.TUtil.now() - this.start0.timeStamp : 0;
799
800
  }
800
801
  var momentum;
801
- if (this.currentTouch.orientation === "horizontal" && Math.abs(deltaX) > 0 && period > 0) {
802
+ if (this.currentTouch.orientation === 'horizontal' && Math.abs(deltaX) > 0 && period > 0) {
802
803
  momentum = _TUtil.TUtil.momentum(0, deltaX, period);
803
804
  this.touchTimeStamp = this.end0.timeStamp + momentum.duration;
804
805
  if (this.touchTimeStamp - _TUtil.TUtil.now() > 0) {
805
806
  this.currentTouch.deltaX = momentum.distance;
806
807
  this.currentTouch.manualMomentumFlag = true;
807
808
  }
808
- } else if (this.currentTouch.orientation === "vertical" && Math.abs(deltaY) > 0 && period > 0) {
809
+ } else if (this.currentTouch.orientation === 'vertical' && Math.abs(deltaY) > 0 && period > 0) {
809
810
  momentum = _TUtil.TUtil.momentum(0, deltaY, period);
810
811
  this.touchTimeStamp = this.end0.timeStamp + momentum.duration;
811
812
  if (this.touchTimeStamp - _TUtil.TUtil.now() > 0) {
@@ -820,14 +821,14 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
820
821
  value: function setDeltaXDeltaY(deltaX, deltaY, source) {
821
822
  var diff = Math.abs(deltaX) - Math.abs(deltaY);
822
823
  if (diff >= 1) {
823
- if (this.currentTouch.orientation === "none" || this.currentTouch.orientation === "vertical" && diff >= 2 || this.currentTouch.orientation === "horizontal") {
824
- this.currentTouch.orientation = "horizontal";
825
- this.currentTouch.dir = deltaX <= -1 ? "left" : deltaX >= 1 ? "right" : this.currentTouch.dir;
824
+ if (this.currentTouch.orientation === 'none' || this.currentTouch.orientation === 'vertical' && diff >= 2 || this.currentTouch.orientation === 'horizontal') {
825
+ this.currentTouch.orientation = 'horizontal';
826
+ this.currentTouch.dir = deltaX <= -1 ? 'left' : deltaX >= 1 ? 'right' : this.currentTouch.dir;
826
827
  this.currentTouch.source = source;
827
828
  }
828
- } else if (this.currentTouch.orientation === "none" || this.currentTouch.orientation === "horizontal" && diff <= -2 || this.currentTouch.orientation === "vertical") {
829
- this.currentTouch.orientation = "vertical";
830
- this.currentTouch.dir = deltaY <= -1 ? "up" : deltaY >= 1 ? "down" : this.currentTouch.dir;
829
+ } else if (this.currentTouch.orientation === 'none' || this.currentTouch.orientation === 'horizontal' && diff <= -2 || this.currentTouch.orientation === 'vertical') {
830
+ this.currentTouch.orientation = 'vertical';
831
+ this.currentTouch.dir = deltaY <= -1 ? 'up' : deltaY >= 1 ? 'down' : this.currentTouch.dir;
831
832
  this.currentTouch.source = source;
832
833
  }
833
834