maykar / lovelace-swipe-navigation

↔️ Swipe through Lovelace views on mobile.
MIT License
205 stars 71 forks source link

Fix 'animate: swipe' animation #39

Closed PronkMedia closed 3 years ago

PronkMedia commented 3 years ago

With Home Assistant Core 0.117.0 and Lovelace Swipe Navigation 1.2.7 the swipe animation is very buggy. It seems to zoom the viewport, especially for larger views. This is probably caused by enabling native zooming in 0.117.0 in combination with negative positioned viewports when doing the swipe animation.

This PR will fix this. I also tried to set and unset overflow: hidden before and after the animation, but that way it was still buggy when swiping fast through multiple views.

maykar commented 3 years ago

Thank you!