@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pstdio/canvas",
3
- "version": "0.47.0",
3
+ "version": "0.48.0-nightly.20261116135425",
4
4
  "description": "Build and watch a project's .canvas.tsx files for UI Canvas.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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) return;
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
  };