@antv/g-lite 1.2.10 → 1.2.11
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/dist/index.esm.js +4 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/utils/event.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -7724,6 +7724,7 @@ var TOUCH_TO_POINTER = {
|
|
|
7724
7724
|
touchmove: 'pointermove',
|
|
7725
7725
|
touchcancel: 'pointercancel',
|
|
7726
7726
|
};
|
|
7727
|
+
var clock = typeof performance === 'object' && performance.now ? performance : Date;
|
|
7727
7728
|
|
|
7728
7729
|
function isFillOrStrokeAffected(pointerEvents, fill, stroke) {
|
|
7729
7730
|
// account for pointerEvents
|
|
@@ -9178,7 +9179,7 @@ var EventService = /** @class */ (function () {
|
|
|
9178
9179
|
};
|
|
9179
9180
|
this.onPointerUp = function (from) {
|
|
9180
9181
|
var _a;
|
|
9181
|
-
var now =
|
|
9182
|
+
var now = clock.now();
|
|
9182
9183
|
var e = _this.createPointerEvent(from, undefined, undefined, _this.context.config.alwaysTriggerPointerEventOnCanvas
|
|
9183
9184
|
? _this.rootTarget
|
|
9184
9185
|
: undefined);
|
|
@@ -9775,7 +9776,7 @@ var EventService = /** @class */ (function () {
|
|
|
9775
9776
|
};
|
|
9776
9777
|
EventService.prototype.copyData = function (from, to) {
|
|
9777
9778
|
to.isTrusted = from.isTrusted;
|
|
9778
|
-
to.timeStamp =
|
|
9779
|
+
to.timeStamp = clock.now();
|
|
9779
9780
|
to.type = from.type;
|
|
9780
9781
|
to.detail = from.detail;
|
|
9781
9782
|
to.view = from.view;
|
|
@@ -14515,7 +14516,7 @@ var EventPlugin = /** @class */ (function () {
|
|
|
14515
14516
|
EventPlugin.prototype.transferMouseData = function (event, nativeEvent) {
|
|
14516
14517
|
event.isTrusted = nativeEvent.isTrusted;
|
|
14517
14518
|
event.srcElement = nativeEvent.srcElement;
|
|
14518
|
-
event.timeStamp =
|
|
14519
|
+
event.timeStamp = clock.now();
|
|
14519
14520
|
event.type = nativeEvent.type;
|
|
14520
14521
|
event.altKey = nativeEvent.altKey;
|
|
14521
14522
|
event.metaKey = nativeEvent.metaKey;
|