tango-adb / feedback

Issue tracker for Tango Web App
https://tangoapp.dev/
GNU General Public License v2.0
2 stars 0 forks source link

[Suggestion] use window.resizeTo in pip mode #14

Closed glitch128 closed 6 months ago

glitch128 commented 7 months ago

Pre-issue checklist

How would you like Tango to be improved?

I would like for the pip window to resize automatically using the window.resizeTo API

How do you think it should work?

that when the device rotates, the pip window resizes to fit the screen ratio

(Optional) Other information

https://developer.mozilla.org/en-US/docs/Web/API/Window/resizeTo

yume-chan commented 6 months ago

Thanks for your suggestion, I have implemented it so the PIP window will automatically resize when device screen orientation changes.

Note that this feature requires Chrome version 121 (https://chromestatus.com/feature/5398995019235328, https://crbug.com/1354325, the current stable version is 120).