Reproduction steps
- Join a call
- Acquire a floating pane (Picture-in-Picture) by watching a screen share and then exiting the in-call UI by opening something else
- Drag a corner of the floating pane in order to resize it
Expected behaviour
The pane resizes together with the pointer coordinates during the drag. This can be achieved by modifying line 197 in FloatingPaneMath.ts
The solution closest to the existing behavior is to take drag together with the pointer on the most modified axis like this:
See fixed_bebaviour.webm.
Please let me know if I should PR a solution. Fluxer Oxygen seems to maybe have a similar problem.
rawWidthDelta = Math.abs(fromVertical) >= Math.abs(fromHorizontal) ? fromVertical : fromHorizontal;Actual behaviour
The pane resizes more than expected due to faulty pointer math in FloatingPaneMath.ts on the electron client
Build information
Stable Desktop 2026.1129.234430, Web 2026.1202.40907, Linux 7.3.7-1-cachyos (x64), Electron 44.10.0, Chrome 152.0.7977.169, Node 24.22.1, Locale en-US
Development Desktop 0.0.0, Canary Web dev, Linux 7.3.7-1-cachyos (x64), Electron 44.10.0, Chrome 152.0.7977.169, Node 24.22.1, Locale en-US
Comments
No comments yet.