Socket
Socket
Sign inDemoInstall

ember-gesture-modifiers

Package Overview
Dependencies
395
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 3.0.0

20

CHANGELOG.md
## v3.0.0 (2022-01-17)
#### :boom: Breaking Change
* [#188](https://github.com/nickschot/ember-gesture-modifiers/pull/188) feat: Ember v4 Support, drop Ember < 3.24 ([@knownasilya](https://github.com/knownasilya))
* [#72](https://github.com/nickschot/ember-gesture-modifiers/pull/72) drop node 10 support ([@nickschot](https://github.com/nickschot))
#### :bug: Bug Fix
* [#137](https://github.com/nickschot/ember-gesture-modifiers/pull/137) use document based event handlers for pointer move/up/cancel for all pointer types ([@nickschot](https://github.com/nickschot))
* [#71](https://github.com/nickschot/ember-gesture-modifiers/pull/71) fix parse-touch-data re-export ([@nickschot](https://github.com/nickschot))
#### :house: Internal
* [#138](https://github.com/nickschot/ember-gesture-modifiers/pull/138) use ember-auto-import v2 in ember-beta test scenario ([@nickschot](https://github.com/nickschot))
* [#76](https://github.com/nickschot/ember-gesture-modifiers/pull/76) remove console.log from modifier code ([@nickschot](https://github.com/nickschot))
* [#73](https://github.com/nickschot/ember-gesture-modifiers/pull/73) upgrade to ember-cli 3.27 blueprint ([@nickschot](https://github.com/nickschot))
#### Committers: 2
- Ilya Radchenko ([@knownasilya](https://github.com/knownasilya))
- Nick Schot ([@nickschot](https://github.com/nickschot))
## v1.1.1 (2021-07-07)

@@ -3,0 +23,0 @@

38

package.json
{
"name": "ember-gesture-modifiers",
"version": "2.0.0",
"version": "3.0.0",
"description": "The default blueprint for ember-cli addons.",

@@ -30,10 +30,10 @@ "keywords": [

"dependencies": {
"ember-cli-babel": "^7.26.6",
"ember-cli-htmlbars": "^6.0.0",
"ember-modifier": "^2.1.0"
"ember-cli-babel": "^7.26.11",
"ember-cli-htmlbars": "^6.0.1",
"ember-modifier": "^3.0.0"
},
"devDependencies": {
"@ember/optional-features": "2.0.0",
"@ember/test-helpers": "2.5.0",
"@embroider/test-setup": "0.47.0",
"@ember/test-helpers": "2.6.0",
"@embroider/test-setup": "0.50.2",
"@glimmer/component": "1.0.4",

@@ -43,4 +43,4 @@ "@glimmer/tracking": "1.0.4",

"broccoli-asset-rev": "3.0.0",
"ember-auto-import": "1.12.0",
"ember-cli": "3.28.3",
"ember-auto-import": "2.3.0",
"ember-cli": "4.1.0",
"ember-cli-dependency-checker": "3.2.0",

@@ -53,25 +53,25 @@ "ember-cli-inject-live-reload": "2.1.0",

"ember-load-initializers": "2.1.2",
"ember-maybe-import-regenerator": "1.0.0",
"ember-page-title": "6.2.2",
"ember-page-title": "7.0.0",
"ember-qunit": "5.1.5",
"ember-resolver": "8.0.3",
"ember-source": "3.28.4",
"ember-source": "4.1.0",
"ember-source-channel-url": "3.0.0",
"ember-template-lint": "3.10.0",
"ember-try": "1.4.0",
"ember-template-lint": "4.0.0",
"ember-try": "2.0.0",
"eslint": "7.32.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-ember": "10.5.7",
"eslint-plugin-ember": "10.5.8",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-prettier": "4.0.0",
"eslint-plugin-qunit": "7.0.0",
"eslint-plugin-qunit": "7.2.0",
"lerna-changelog": "2.2.0",
"loader.js": "4.7.0",
"npm-run-all": "4.1.5",
"prettier": "2.4.1",
"prettier": "2.5.1",
"qunit": "2.17.2",
"qunit-dom": "2.0.0"
"qunit-dom": "2.0.0",
"webpack": "5.66.0"
},
"engines": {
"node": ">= 12"
"node": "12.* || 14.* || >= 16"
},

@@ -85,4 +85,4 @@ "ember": {

"volta": {
"node": "16.4.2"
"node": "16.13.2"
}
}

@@ -1,17 +0,13 @@

ember-gesture-modifiers
==============================================================================
# ember-gesture-modifiers
Addon that provides gestures as modifiers.
Compatibility
------------------------------------------------------------------------------
## Compatibility
* Ember.js v3.12 or above
* Ember CLI v2.13 or above
* Node.js v12 or above
- Ember.js v3.24 or above
- Ember CLI v3.24 or above
- Node.js v12 or above
## Installation
Installation
------------------------------------------------------------------------------
```

@@ -21,9 +17,8 @@ ember install ember-gesture-modifiers

## Usage
Usage
------------------------------------------------------------------------------
Currently only a Pan modifier is provided. More gestures will be added in the future.
## Pan modifier
```handlebars

@@ -40,12 +35,14 @@ <div

### arguments
- **onPanStart** - hook fired when a pan is started
- **onPan** - hook fired when the pan is updated
- **onPanEnd** - hook fired when a pan has ended
- **threshold** _(default: 10)_ - minimum touch movement needed in px to start a pan
- **axis** _(default: 'horizontal')_ - axis for the pan event to be recognized ('horizontal', 'vertical' or 'both')
- **capture** _(default: false)_ - whether or not to use capture events instead of bubbling
- **preventScroll** _(default: true)_ - whether or not to prevent scroll during panning
- **pointerTypes** _(default: ['touch'])_ - the pointer types to support (one or more of 'touch', 'mouse', 'pen')
- **onPanStart** - hook fired when a pan is started
- **onPan** - hook fired when the pan is updated
- **onPanEnd** - hook fired when a pan has ended
- **threshold** _(default: 10)_ - minimum touch movement needed in px to start a pan
- **axis** _(default: 'horizontal')_ - axis for the pan event to be recognized ('horizontal', 'vertical' or 'both')
- **capture** _(default: false)_ - whether or not to use capture events instead of bubbling
- **preventScroll** _(default: true)_ - whether or not to prevent scroll during panning
- **pointerTypes** _(default: ['touch'])_ - the pointer types to support (one or more of 'touch', 'mouse', 'pen')
The hooks are passed a TouchData object which looks like:
```javascript

@@ -86,4 +83,4 @@ {

Testing
------------------------------------------------------------------------------
## Testing
A `pan` test helper is exposed by the addon.

@@ -101,11 +98,8 @@

Contributing
------------------------------------------------------------------------------
## Contributing
See the [Contributing](CONTRIBUTING.md) guide for details.
## License
License
------------------------------------------------------------------------------
This project is licensed under the [MIT License](LICENSE.md).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc