element-call icon indicating copy to clipboard operation
element-call copied to clipboard

Back button does not close the settings but enter pip mode

Open bmarty opened this issue 5 months ago • 2 comments

Steps to reproduce

  1. On Android, start a call
  2. Open the settings
  3. Press the back button

Outcome

What did you expect?

The settings panel is closed

What happened instead?

The call enters PIP mode

Operating system

Android

Browser information

No response

URL for webapp

No response

Will you send logs?

Yes

bmarty avatar Jul 03 '25 08:07 bmarty

I think this is rather high priority since this will definitly happen.

@BillCarsonFr proposes this could be done by using the EC react router. (back then might route us back)

toger5 avatar Jul 08 '25 14:07 toger5

Since the mobile apps would have to manually connect the 'back' event to the web view anyhow, I think we can achieve this more simply by simulating an 'Escape' key press when the back button is pressed. The app can then register a keydown event listener of its own on the window, and enter PiP mode if such a keydown event reaches the window without preventDefault being called at any point.

robintown avatar Jul 21 '25 12:07 robintown