Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ember-gestures
Advanced tools
Gesture and Mobile support for Ambitious Ember Applications.
###Changelog
##Installation
ember install ember-gestures
When you run the default blueprint (runs by default when you do ember install
or by ember g ember-gestures
), this addon will install HammerJS 2.0.5.
The addon wires HammerJS into your app as a global (Hammer), and provides various means by which to use HammerJS in your app. All manager instances created by this addon will emit domEvents, which Ember has been configured to utilize. This means that using Hammer with Ember is just like using any other event with ember, you add event handlers to your views or components.
For example
import Ember from 'ember';
const {
Component
} = Ember;
export default Component.extend({
panStart(e) {
... do something with the event ...
}
});
But before you can do the above, you'll have to ensure your app knows what gestures to recognize. Don't fret, in even advanced cases, getting gestures available throughout your app will take only a few minutes of configuration, not a day of figuring things out. See Usage for more details and examples of how to setup recognizers in your app.
In addition to the basic hammer functionality present in the box, ember-gestures comes with several blueprints for advanced usage which you can install separately.
##Usage
##Configuration
##touchZone
Sometimes smaller buttons or critical buttons need a larger capture area than their visible area. You can increase the area that recognizes touch events for a specific button https://gist.github.com/runspired/506f39a4abb2be48d63f
Important The jQuery events you need to trigger are the Hammer variant, meaning it is entirely lowercase swiperight
, panup
.
Don't bind within {{#each}}
, use a base recognizer instead.
FAQs
TouchAction and Gesture support for Ember Applications
The npm package ember-gestures receives a total of 2,369 weekly downloads. As such, ember-gestures popularity was classified as popular.
We found that ember-gestures demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.