home-assistant / iOS

:iphone: Home Assistant for Apple platforms
https://companion.home-assistant.io
Other
1.53k stars 296 forks source link

Bad zoom behaviour when switching back to app [during split-view on iPad] #2109

Open onionmad opened 2 years ago

onionmad commented 2 years ago

iOS device model, version and app version

Model Name: iPad Pro 2018, 11" Software Version: Latest stable App version: Latest stable

Home Assistant Core Version

Describe the bug When closing (minimizing) and returning to the app, as the app returns, the zoom levels are (very often) increased without user input. This only occurs during split-view(side-by-side) in landscape device orientation. This also occurs if 'pinch to zoom' is disabled in the app settings, with the only difference being that there is no way to zoom back out then!

To Reproduce Set one or two instances of the companion app in split view, using landscape device orientation, and cmd-tab (if using keyboard) or simply multi-task out of the split view, opening another app and then returning to the split view (companion apps), one or both companion app instances will be zoomed in from the default full view. The bad zoom in behaviour can also be seen when simply refreshing (pull to refresh, or cmd+R) in a split-view instance of the companion app, with similar frequency as the multi-task trigger above. Seems to be the same issue. Occurrence rate: often but not always.

Expected behavior Being able to multi-task in and out of the companion app without any zoom adjustments.

Screenshots

Additional context

Does not occur in normal single instance-full-screen mode. Only during split-view with the companion app as one or both visible apps.

jazzmonger commented 8 months ago

I'm glad someone else reported this. It is absolutely maddening when this happens.
ios version 17.1.2, but is happened ever since I installed it years ago. It's the ONLY app that does this.

On my iPad it happens whenever I task switch over to companion after a few minutes. Then I get a screen that looks like this and I have to pinch zoom out.

IMG_2630

it seems to be happening about 50% of the time these days and has gotten worse over time. I

Stooovie commented 1 month ago

Unfixed as of 2024.6. This is my video from July 2024. Everything is fully updated. No point stating versions, this is going on for at least five years. It's probably a Safari Web view bug caused by some component.

onionmad commented 1 month ago

FYI, I have mitigated this issue by simply disabling the 'pinch to zoom' option. At least I'm fairly sure that's the setting that fixed it...

Stooovie commented 1 month ago

No, on the contrary - when I disable that option, I'm unable to zoom out and have to force quit the app. But the core issue is still present.