targetj 1.0.113 → 1.0.114
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/build/EventListener.js +8 -2
- package/build/LocationManager.js +1 -1
- package/build/TModelManager.js +1 -1
- package/build/TargetUtil.js +4 -4
- package/build/Viewport.js +0 -2
- package/package.json +1 -1
package/build/EventListener.js
CHANGED
|
@@ -43,6 +43,7 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
|
|
|
43
43
|
this.end0 = undefined;
|
|
44
44
|
this.end1 = undefined;
|
|
45
45
|
this.touchCount = 0;
|
|
46
|
+
this.canFindHandlers = true;
|
|
46
47
|
this.currentEventName = "";
|
|
47
48
|
this.currentEventType = "";
|
|
48
49
|
this.currentHandlers = {
|
|
@@ -334,9 +335,12 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
|
|
|
334
335
|
return;
|
|
335
336
|
}
|
|
336
337
|
var lastEvent = this.eventQueue.shift();
|
|
337
|
-
if (this.
|
|
338
|
+
if (this.canFindHandlers) {
|
|
338
339
|
this.findEventHandlers(lastEvent);
|
|
339
340
|
}
|
|
341
|
+
if (lastEvent.eventType === 'end') {
|
|
342
|
+
this.canFindHandlers = true;
|
|
343
|
+
}
|
|
340
344
|
this.currentEventName = lastEvent.eventName;
|
|
341
345
|
this.currentEventType = lastEvent.eventType;
|
|
342
346
|
this.currentKey = this.currentTouch.key;
|
|
@@ -398,6 +402,7 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
|
|
|
398
402
|
this.clearStart();
|
|
399
403
|
this.clearTouch();
|
|
400
404
|
this.touchCount = this.countTouches(event);
|
|
405
|
+
this.canFindHandlers = false;
|
|
401
406
|
if (this.preventDefault(tmodel, eventName)) {
|
|
402
407
|
event.preventDefault();
|
|
403
408
|
}
|
|
@@ -495,7 +500,6 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
|
|
|
495
500
|
this.start1 = undefined;
|
|
496
501
|
this.end0 = undefined;
|
|
497
502
|
this.end1 = undefined;
|
|
498
|
-
this.touchCount = 0;
|
|
499
503
|
}
|
|
500
504
|
}, {
|
|
501
505
|
key: "clearTouch",
|
|
@@ -518,6 +522,8 @@ var EventListener = exports.EventListener = /*#__PURE__*/function () {
|
|
|
518
522
|
this.clearTouch();
|
|
519
523
|
this.eventQueue.length = 0;
|
|
520
524
|
this.touchTimeStamp = 0;
|
|
525
|
+
this.touchCount = 0;
|
|
526
|
+
this.canFindHandlers = true;
|
|
521
527
|
}
|
|
522
528
|
}, {
|
|
523
529
|
key: "deltaX",
|
package/build/LocationManager.js
CHANGED
|
@@ -82,11 +82,11 @@ var LocationManager = exports.LocationManager = /*#__PURE__*/function () {
|
|
|
82
82
|
if (container.manageChildTargetExecution(child, shouldCalculateChildTargets)) {
|
|
83
83
|
this.calculateTargets(child);
|
|
84
84
|
}
|
|
85
|
-
viewport.setLocation();
|
|
86
85
|
child.overflowingFlag = false;
|
|
87
86
|
if (container.getContainerOverflowMode() === 'always' || child.getItemOverflowMode() === 'always' || container.getContainerOverflowMode() === 'auto' && child.getItemOverflowMode() === 'auto' && viewport.isOverflow()) {
|
|
88
87
|
child.overflowingFlag = true;
|
|
89
88
|
viewport.overflow();
|
|
89
|
+
viewport.setLocation();
|
|
90
90
|
}
|
|
91
91
|
if (child.isIncluded() && !this.hasLocationMap[child.oid]) {
|
|
92
92
|
this.addToLocationList(child);
|
package/build/TModelManager.js
CHANGED
|
@@ -290,7 +290,7 @@ var TModelManager = exports.TModelManager = /*#__PURE__*/function () {
|
|
|
290
290
|
tmodel.$dom.attr(key, tmodel.val(key));
|
|
291
291
|
} else {
|
|
292
292
|
if (_TUtil.TUtil.isDefined(tmodel.val(key)) && tmodel.styleMap[key] !== tmodel.val(key)) {
|
|
293
|
-
tmodel.$dom.style(key, tmodel.val(key));
|
|
293
|
+
tmodel.$dom.style(key, "".concat(tmodel.val(key)));
|
|
294
294
|
tmodel.styleMap[key] = tmodel.val(key);
|
|
295
295
|
}
|
|
296
296
|
}
|
package/build/TargetUtil.js
CHANGED
|
@@ -312,7 +312,6 @@ _defineProperty(TargetUtil, "styleWithUnitMap", {
|
|
|
312
312
|
padding: true,
|
|
313
313
|
left: true,
|
|
314
314
|
top: true,
|
|
315
|
-
fontWeight: true,
|
|
316
315
|
letterSpacing: true
|
|
317
316
|
});
|
|
318
317
|
_defineProperty(TargetUtil, "colorMap", {
|
|
@@ -343,7 +342,8 @@ _defineProperty(TargetUtil, "styleTargetMap", _objectSpread(_objectSpread(_objec
|
|
|
343
342
|
fontFamily: true,
|
|
344
343
|
overflow: true,
|
|
345
344
|
textDecoration: true,
|
|
346
|
-
boxShadow: true
|
|
345
|
+
boxShadow: true,
|
|
346
|
+
fontWeight: true
|
|
347
347
|
}));
|
|
348
348
|
_defineProperty(TargetUtil, "scaleMap", {
|
|
349
349
|
scale: true,
|
|
@@ -430,8 +430,8 @@ _defineProperty(TargetUtil, "targetConditionMap", {
|
|
|
430
430
|
onTouchStart: function onTouchStart(tmodel) {
|
|
431
431
|
return (0, _App.getEvents)().isStartEvent() && (0, _App.getEvents)().isTouchHandler(tmodel);
|
|
432
432
|
},
|
|
433
|
-
onTouchEnd: function onTouchEnd() {
|
|
434
|
-
return (0, _App.getEvents)().isEndEvent();
|
|
433
|
+
onTouchEnd: function onTouchEnd(tmodel) {
|
|
434
|
+
return (0, _App.getEvents)().isEndEvent() && (0, _App.getEvents)().isTouchHandler(tmodel);
|
|
435
435
|
},
|
|
436
436
|
onKeyEvent: function onKeyEvent() {
|
|
437
437
|
return (0, _App.getEvents)().getEventType() === 'key' && (0, _App.getEvents)().currentKey;
|
package/build/Viewport.js
CHANGED
|
@@ -53,8 +53,6 @@ var Viewport = exports.Viewport = /*#__PURE__*/function () {
|
|
|
53
53
|
value: function overflow() {
|
|
54
54
|
this.xNext = this.scrollLeft - this.absX + this.xOverflowReset;
|
|
55
55
|
this.yNext = this.ySouth;
|
|
56
|
-
this.currentChild.x = this.xNext + this.currentChild.getLeftMargin();
|
|
57
|
-
this.currentChild.y = this.yNext + this.currentChild.getTopMargin();
|
|
58
56
|
}
|
|
59
57
|
}, {
|
|
60
58
|
key: "appendNewLine",
|