using backbone.js with hammer.js

柔情痞子 提交于 2019-12-10 19:57:55

问题


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



来源:https://stackoverflow.com/questions/13039285/using-backbone-js-with-hammer-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!