Open danielweck opened 10 years ago
Swipe gestures currently disabled in ReadiumJS: https://github.com/readium/readium-js-viewer/blob/develop/src/js/gestures.js#L18
Hi @danielweck ,
I think I've managed to add swipe handling for Hammer v2 API. I´ve made a PR at https://github.com/readium/readium-js-viewer/pull/479
It seems to be working fine. Let me know if there's something missing.
Current version is 1.x https://github.com/readium/readium-js-viewer/blob/develop/lib/thirdparty/hammer.js
Version 2.x has a new API: http://hammerjs.github.io/changelog/
Useful pointer: http://tech.gilt.com/post/98240068394/five-things-you-need-to-know-about-hammer-js-2-0
Code to migrate: https://github.com/readium/readium-js-viewer/blob/develop/lib/gestures.js