foxglove / community

This repo hosts our org-wide discussion board
0 stars 0 forks source link

Odd panning behavior in 3D panel #960

Closed yepterence closed 7 months ago

yepterence commented 8 months ago

Description When we click and drag to pan across in the 3D panel, we notice that the cursor tends not to return to the same spot that you've clicked and held during panning. This issue wan't present when we visualized our ROS1 bags with webviz.

Steps To Reproduce

Expected behavior video webviz-expected-behavior.webm

Unexpected Behavior video foxglove-studio-unexpected-behavior.webm

Expected Behavior After you're done panning, I would expect that the mouse cursor is on top of the last thing it was clicked and dragged on, if the mouse button is clicked and held.

foxhubber[bot] commented 8 months ago

Internal tracking ticket: FG-6537

amacneil commented 8 months ago

Thanks for reporting, I can reproduce (below) and we're taking a look at it.

My description of the issue (assuming I understand you correctly): When dragging in 2D mode, the cursor is moving faster than the underlying canvas. Instead the cursor should stay "attached" to the canvas while dragging.

https://github.com/foxglove/studio/assets/637671/65927f85-dad9-443d-ad40-00003400de33