Edit history

Incorrect diagonal picture-in-picture resizing behavior has not been edited, so there are no earlier versions.

Current version | Original by Nsgr
Show

Incorrect diagonal picture-in-picture resizing behavior

Reproduction steps

  1. Join a call
  2. Acquire a floating pane (Picture-in-Picture) by watching a screen share and then exiting the in-call UI by opening something else
  3. Drag a corner of the floating pane in order to resize it
See current_behaviour.webm .

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:
rawWidthDelta = Math.abs(fromVertical) >= Math.abs(fromHorizontal) ? fromVertical : fromHorizontal;
See fixed_bebaviour.webm. Please let me know if I should PR a solution. Fluxer Oxygen seems to maybe have a similar problem.

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