Swiping through photo stack like Tinder - Cross-platform (Hybrid / HTML5 is OK)

后端 未结 4 1942
隐瞒了意图╮
隐瞒了意图╮ 2021-02-01 22:09

I\'m looking to create an app like Tinder where users swipe through a photo stack. Does anyone know of a way to reproduce this effect cross-platform? So far, I\'m thinking of bu

4条回答
  •  半阙折子戏
    2021-02-01 22:43

    Hope it isn't too late to post a suggestion. So, hammerjs allows to listen to multitouch and gesture events. And supports Android, iOS and Windows Phone.

    http://eightmedia.github.io/hammer.js/

    Can try calling the photostack control's next/previous step based on the gesture event?

提交回复
热议问题