【问题标题】:How Use Hammer.js Touch Area with Jade如何在 Jade 中使用 Hammer.js 触控区域
【发布时间】:2015-08-25 20:40:46
【问题描述】:

我想在我的 Meteor + Blaze + Jade 应用程序中使用 Hammer.js 包 (https://atmospherejs.com/chriswessels/hammer),但我无法使用 {{/HammerTouchArea}} 关闭车把内的触控区域

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

我的 Google-fu 没有产生任何结果,这对于我想象的 Jade + Hammer.js 的常见用例来说是令人惊讶的。

【问题讨论】:

    标签: html meteor pug meteor-blaze hammer.js


    【解决方案1】:

    在 Hammer.js 存储库的一个已关闭问题中发现了这一点,该应用正在构建中:

    +HammerTouchArea(gestureMap=templateGestures)
    

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

    【讨论】:

      猜你喜欢
      • 2015-10-21
      • 2013-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-21
      • 2016-03-09
      相关资源
      最近更新 更多