I am somehow stucked with this: I am trying to offer the same experience on desktop for some scrolling contents inside of a div like the scrolling on mobile devices. On mobile I am using -webkit-overflow-scrolling: touch; and that is fine. After experimenting with a few libraries, I stumbled across hammer.js and the hamme.js touch emulator.
The question is: how could I use the emulator to touch drag on a container with -webkit-overflow-scrolling: touch; ? I have built a little Hype project. The script seems to work – at least I am getting some log events while I am dragging with the mouse over the div but the content is not scrolling…
Anybody an idea?
hammer.zip (491.4 KB)
P.S. a side question here – is there a way to prevent the vertical overscoll of the complete Hype document in Hype-Reflect?