bespokejs / bespoke

DIY Presentation Micro-Framework
http://markdalgleish.com/projects/bespoke.js/
MIT License
4.69k stars 442 forks source link

Scrollable content is broken on iOS #28

Closed jeremyckahn closed 10 years ago

jeremyckahn commented 11 years ago

Hi, thanks for making Bespoke.js. I found an issue with Bespoke that you can see here: http://jeremyckahn.github.io/bespoke-bug/public/

When I test this on desktop Chrome, the overflowing content can be scrolled as expected. On iOS, the content cannot be scrolled. This is because Bespoke is catching the touchmove event and preventing the default behavior. This logic breaks all overflowing, scrollable content.

In my project (not the sample linked), I was able to work around this issue by calling stopPropagation on the touchmove event for scrollable content. However, it would be great is Bespoke could handle this itself.

I might take a stab at a solution if I have time, but I at least want to report the bug and get it on your radar.

markdalgleish commented 10 years ago

Since touch interactions have been split out into a separate plugin, I've closed this particular issue and opened a new one on bespoke-touch.