Repository navigation
Tiles scroll: true row doesn't swipe on iOS (WebKit)
#85
Unanswered
DerHerzog7
asked this question in
Q&A
Replies: 1 comment
|
Thanks for the detailed report and the workaround. I don't have an iphone myself, so this helps. The next release will use your fix on all devices, so the row should swipe on iphones too. The downside you mention shouldn't matter much, since in Origami's own cards there's no other card underneath the row |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
A Tiles card with
origami_tiles: scroll: truewon't scroll sideways on iOS. It fails in Safari, Chrome for iOS and the HA Companion app, which all use WebKit. The same card scrolls fine on desktop Chrome, and also on iOS inside the Bubble Card editor preview. It only stops after saving and viewing the dashboard.Other horizontal swipes on the same page work, such as the Origami Notifications card, so the page isn't blocking sideways gestures.
Versions
Likely cause
scroller()in Base setspointer-events: noneon.bubble-sub-button-bottom-container(the element withoverflow-x: auto) and turns it back on only for the sub-buttons. iOS WebKit seems not to start a touch scroll on a scroll container that haspointer-events: none, even when the touch begins on a child that haspointer-events: auto.Workaround
Setting the row back to
pointer-events: autothrough the card'sstyles:fixes it on iOS:The trade-off is that a tap beside the tiles no longer passes through to a card underneath.
Steps to reproduce
origami_baseandorigami_tiles, setscroll: true, and add enough tiles to overflow a phone screen.All reactions