adambabik / angular-hammer-recognizers Goto Github PK
View Code? Open in Web Editor NEWHammer.js adapter for AngularJS
License: MIT License
Hammer.js adapter for AngularJS
License: MIT License
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...
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.
Currently, angular-hammer directives start with hammer-
which is unnecessary long. hm-
looks like a better choice.
What file needs to be included in the browser in order to use this package?
A list of tasks to fulfil before merging v1.0 to the main branch.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.