Hacker News new | ask | show | jobs
by disillusion 2624 days ago
I wonder if it's possible to catch horizontal touch events only. As it stands, the demo page is nearly impossible to scroll.
3 comments

Not to take wind out from the sails of OP, but there are [edit: not CSS only, a couple bytes of inline JS] alternatives that remove some of that issue, and usage ambiguity by using an explicit slider (at the cost of some other features like zoom).

https://picturepan2.github.io/spectre/experimentals/viewer-3...

should be good in version 2.0.1 (demo page is updated)
Can confirm, works like a charm!
I don't have such problems. Which browser/device did you use?
The ask is that swipe up/down on elements that only want left/right bubble those up/down events to the page so it scrolls. I believe it's not specific to any one device.

Though it is more pronounced with a screen where the picture fills most of the screen. You currently have to find a border or space between the pictures to swipe on to scroll up or down.