JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4868
  • Score
    100M100P100Q115120F

A javascript library for multi-touch gestures

Package Exports

  • jquery-hammerjs
  • jquery-hammerjs/jquery.hammer
  • jquery-hammerjs/jquery.hammer-full.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (jquery-hammerjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

jquery.hammer.js

Build Status

jQuery plugin for Hammer.js

Since version 1.0.6 it is seperated from the main lib, and lives in this repository. It still needs the main library to be included, but a combined version is on its way. 🍺

Usage

var hammer_options = {};
$("#element")
  .hammer(hammer_options)
  .on("swipeleft", function(ev) { console.log(ev); });

The instance is added to the element, you can find it at $("#element").data("hammer"). If the element has a Hammer instance, you can only change the options with the jQuery plugin.