1

I am trying to add swipe gestures to Smooth Div Scroll plugin by Thomas Kahn, since the plugin is not working on iPads and other smart devices.

Az first i was using hammer.js to add the functionality. This is the code i used on the container div that holds the images:

 $("#makeMeScrollable").hammer({
        prevent_default: false,

    })
    .bind("hold tap doubletap transformstart transform transformend dragstart drag dragend release swipe", function(ev) {

    });

But unfortunately, the swipe worked once out of 10 times, and there is no way to stop in the middle, it would just slide to one end or the other.

I am interested if anyone has managed to add swipe functionality to Smooth Div Scroll, or if anyone has some other script to recommend for adding mobile gestures, that is maybe better than Hammer.js.

Here is the link to the website, it is still work in progress: http://www.madebym.net/test/index.html

p.s. right now i am using touchSwipe.js, but it seems worse than hammer.js...it doesn't do anything

4

1 回答 1

2

查看最新更新。Smooth Div Scroll 1.3 支持触控!smoothdivscroll.com 上的文档尚未更新,但您可以在 GitHub 上找到所需的所有信息:https ://github.com/tkahn/Smooth-Div-Scroll

于 2012-09-12T18:27:03.040 回答