using backbone.js with hammer.js

2019-07-07 00:46发布

问题:

Would like to know if anyone have used backbone with hammer.js and how to implement the Backbone.View with the drag, hold events of hammer.js?

回答1:

You can't use Hammerjs events in delegateEvents directly, but there are plugins that patch Backbone.View to make it possible: https://github.com/wookiehangover/backbone.hammer.js