zimjs 18.0.1 → 18.0.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.
- package/package.json +1 -1
- package/src/zim.js +6 -3
package/package.json
CHANGED
package/src/zim.js
CHANGED
|
@@ -51665,13 +51665,17 @@ RETURNS obj for chaining
|
|
|
51665
51665
|
});
|
|
51666
51666
|
});
|
|
51667
51667
|
} else {
|
|
51668
|
-
obj.zimClickDownEvent = obj.on("mousedown", function (e) {
|
|
51668
|
+
obj.zimClickDownEvent = obj.on("mousedown", function (e) {
|
|
51669
51669
|
if (e.currentTarget.type == "List") {
|
|
51670
51670
|
if (e.target.type == "WindowBacking") return;
|
|
51671
51671
|
var local = e.currentTarget.globalToLocal(e.stageX / zim.scaX, e.stageY / zim.scaY);
|
|
51672
51672
|
if (local.y <= 0) return; // avoid titleBar and organizer
|
|
51673
51673
|
}
|
|
51674
|
-
|
|
51674
|
+
var windowParent = false;
|
|
51675
|
+
var pp = e.target.parent.parent;
|
|
51676
|
+
if (pp && pp.type == "Window") windowParent = true;
|
|
51677
|
+
else if (pp && pp.parent && pp.parent.type == "Window") windowParent = true;
|
|
51678
|
+
if (M && !mobileUp && e.currentTarget.type != "List" && !windowParent) {
|
|
51675
51679
|
if (obj.excludeTap) return;
|
|
51676
51680
|
call(e);
|
|
51677
51681
|
if (once) {
|
|
@@ -98079,4 +98083,3 @@ export let Style = zim.Style;
|
|
|
98079
98083
|
export let assets = zim.assets;
|
|
98080
98084
|
export let assetIDs = zim.assetIDs;
|
|
98081
98085
|
export let ZIMON = zim.ZIMON;
|
|
98082
|
-
|