Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ember-gesture-modifiers
Advanced tools
Changelog
v6.0.1 (2023-12-21)
Readme
Addon that provides gestures as modifiers.
ember install ember-gesture-modifiers
Currently only a Pan modifier is provided. More gestures will be added in the future.
<div
{{did-pan
onPanStart=this.didPanStart
onPan=this.didPan
onPanEnd=this.didPanEnd
}}
>
The hooks are passed a TouchData object which looks like:
{
originalEvent: <TouchEvent>,
timeStamp: 2896.435000002384,
initial: {
x: 427.87109375,
y: 276.98046875,
timeStamp: 2251.9500000053085
},
current: {
deltaX: 0,
deltaY: 0,
x: 192.95703125,
y: 279.12890625,
distance: 234.92388670364133,
distanceX: -234.9140625,
distanceY: 2.1484375,
angle: 180.52399148917002,
overallVelocityX: -0.36449888283057935,
overallVelocityY: 0.0033335725424327154,
overallVelocity: -0.36449888283057935,
velocityX: -0.03269026669500546,
velocityY: 0,
velocity: -0.03269026669500546
},
cache: {
velocity: {
distanceX: -234.9140625,
distanceY: 2.1484375,
timeStamp: 2613.435000006575
}
}
}
A pan
test helper is exposed by the addon.
import { pan } from 'ember-gesture-modifiers/test-support';
...
// arg1: CSS selector on which the pan happens
// arg2: a direction in which the pan should happen. Either 'left', 'right', 'down', 'up' or 'up-right'.
await pan('.my-css-selector', 'right');
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
Addon that provides gestures as modifiers.
The npm package ember-gesture-modifiers receives a total of 8,019 weekly downloads. As such, ember-gesture-modifiers popularity was classified as popular.
We found that ember-gesture-modifiers demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.