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
All components available via ember-gestures
have a style
attribute set to touch-action: manipulation; -ms-touch-action: manipulation
.
All link-components
and elements with actions on them are modified to also have this style attribute.
Components available by default include context-element
, fast-action
, and fast-async
.
ember-gestures
uses hammer-time as a polyfill for touch-action
CSS
to enable cross-platform fastclick
. This polyfill works based on the presence of style="touch-action: <foo>;"
being present on an element.
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 components.
For example
import Ember from 'ember';
const {
Component
} = Ember;
export default Component.extend({
panStart(e) {
... do something with the event ...
}
});
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.
Contributions are very welcome.
When making a PR try to use the following conventions:
Commit Messages:
type(shortname): action based description
Examples:
fast-action
componentBranch Naming:
type/short-description
Examples:
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.