You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Grid: panning the canvas sometimes starts a browser drag (no-drop cursor) #4668
Describe the bug
On the Dashboard Grid view, dragging the empty canvas to pan only works some of the time. Other times the press starts a browser drag instead: the cursor turns into the circle-with-a-slash "not allowed" cursor and the view does not move.
To Reproduce
Open Dashboard, switch to Grid.
Select any text on the canvas (double-click a label, or drag across a zone's stat line or the legend).
Press on empty canvas and drag.
The cursor shows the no-drop symbol and the pan stops (or never starts).
Expected behavior
Pressing on empty canvas always pans, whatever is selected.
Cause onCanvasPointerDown in FleetGrid.vue starts a pan and captures the pointer, but nothing stops the browser's own drag. When canvas text is selected, the next press-and-move inside it starts a native drag of that selection: dragstart fires, then pointercancel, and the pan ends. Images and links inside a tile (the avatar, the System Dashboard link) can start a native drag the same way. Measured in Chromium on a clean canvas: no dragstart, 60px of a 60px drag applied. With a selection: one dragstart, one pointercancel, 10px of 60px applied.
Environment:
Trinity version: v1.0.5 / current dev
Browser: Chrome (also reproduced in headless Chromium)
Activity
fix(ui): Grid pan no longer turns into a browser drag when canvas tex…