简体   繁体   中英

How Use Hammer.js Touch Area with Jade

I'd like to use the Hammer.js package ( https://atmospherejs.com/chriswessels/hammer ) in my Meteor + Blaze + Jade app, but I can't get the touch area inside the handlebars to close with {{/HammerTouchArea}}

{{#HammerTouchArea gestureMap=templateGestures}}
  #main-page(style="{{backgroundImage}}")
    +yield

My Google-fu has yielded nothing which is surprising for what I imagine to be a common use-case of Jade + Hammer.js.

Found this in a closed issue on the Hammer.js repo and the app is building now:

+HammerTouchArea(gestureMap=templateGestures)

Source: https://github.com/chriswessels/meteor-hammer/issues/18

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM