GithubHelp home page GithubHelp logo

angular-hammer-recognizers's People

Contributors

adambabik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-hammer-recognizers's Issues

hammer event data

Not really an issue, more of a question... Just wondering if there was a snippet explaining how to get the Hammer event data from a hammer event directive (like deltax,touches) ... Cheers

-- UPDATE --

I am a moron and please ignore this. It is located in the event.gesture object, exactly where the hammer.js docs said it was...

Dedicated attribute to pass options

In the current version, it's possible to pass options to HammerJS using the following syntax:

<div hammer-hold="{ fn: 'changeColor($event)', hold_timeout: 1000 }">Hold Me!</div>

I'd like to extend this functionality to support two formats. The first one should be able to handle a second directive in a format hm-GESTURE-opts:

<div hm-hold="changeColor($event)" hm-hold-opts="{ hold_timeout: 1000 }">Hold Me!</div>

And the second one should be more compact and similar to the current solution:

<div hm-hold="changeColor($event) with { hold_timeout: 1000 }">Hold Me!</div>

Still, there should be a possibility to provide a default set of options for each gesture.

Change "hammer-" to "hm-"

Currently, angular-hammer directives start with hammer- which is unnecessary long. hm- looks like a better choice.

Merge v1.0

A list of tasks to fulfil before merging v1.0 to the main branch.

  • add more necessary tests,
  • create an example page to demonstrate how directives works,
  • update README.md
    • put some examples,
    • prepare a detailed API reference with available directives.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.