@pstdio/canvas 0.47.0 → 0.48.0-nightly.20261116135425
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
CHANGED
|
@@ -110,9 +110,12 @@ export const installFrameNavigation = (send: (message: Omit<FrameMessage, "proto
|
|
|
110
110
|
);
|
|
111
111
|
const suppressDragClick = (event: MouseEvent) => {
|
|
112
112
|
if (!dragged) return;
|
|
113
|
-
dragged = false;
|
|
114
113
|
// Keyboard activation is a new action, not the pointer click produced by the drag.
|
|
115
|
-
if (event.detail === 0)
|
|
114
|
+
if (event.detail === 0) {
|
|
115
|
+
if (!pan) dragged = false;
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
dragged = false;
|
|
116
119
|
event.preventDefault();
|
|
117
120
|
event.stopPropagation();
|
|
118
121
|
};
|