@funnest/charts-ui 0.11.57 → 0.11.58
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.js +3 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -4040,6 +4040,7 @@ function toolGroups(defs) {
|
|
|
4040
4040
|
}
|
|
4041
4041
|
return [...groups];
|
|
4042
4042
|
}
|
|
4043
|
+
var touchDevice = () => typeof matchMedia === "function" && matchMedia("(hover: none)").matches;
|
|
4043
4044
|
function ToolGroup({
|
|
4044
4045
|
ctx,
|
|
4045
4046
|
tools,
|
|
@@ -4061,7 +4062,7 @@ function ToolGroup({
|
|
|
4061
4062
|
A2(() => {
|
|
4062
4063
|
if (!open) setSheet(false);
|
|
4063
4064
|
}, [open]);
|
|
4064
|
-
const pointer = (e3) => finger.current = e3.pointerType !== "mouse";
|
|
4065
|
+
const pointer = (e3) => finger.current = e3.pointerType !== "mouse" && touchDevice();
|
|
4065
4066
|
const openSheet = () => {
|
|
4066
4067
|
setSheet(true);
|
|
4067
4068
|
onOpen(true);
|
|
@@ -8049,7 +8050,7 @@ function useRowTouch(onLong) {
|
|
|
8049
8050
|
ref: row2,
|
|
8050
8051
|
onPointerDown: (e3) => {
|
|
8051
8052
|
const p3 = press.current;
|
|
8052
|
-
p3.touch = e3.pointerType !== "mouse";
|
|
8053
|
+
p3.touch = e3.pointerType !== "mouse" && typeof matchMedia === "function" && matchMedia("(hover: none)").matches;
|
|
8053
8054
|
p3.long = false;
|
|
8054
8055
|
stop();
|
|
8055
8056
|
if (!p3.touch || !onLong || e3.target.closest(".fnc-ind-actions, .fnc-ind-eye, .fnc-ind-controls")) return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@funnest/charts-ui",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.58",
|
|
4
4
|
"description": "Pro trading UI (toolbar, drawing tools, sheets) for Funnest Charts. Framework-agnostic.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chart",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"NOTICE"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@funnest/charts": "0.11.
|
|
45
|
+
"@funnest/charts": "0.11.58"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"preact": "^11.2.0"
|