Skip to content

Bump hammerjs from 2.0.8 to 2.0.10 in /common/webapp - #923

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/common/webapp/hammerjs-2.0.10
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/common/webapp/hammerjs-2.0.10

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps hammerjs from 2.0.8 to 2.0.10.

Release notes

Sourced from hammerjs's releases.

v2.0.10

Build
  • Disable ES6 arrow-function compression in uglify:min so hammer.min.js remains strictly ES5-compatible, and lint hammer.min.js as ES5 in grunt lint (#1398)

v2.0.9

Stop. Hammer time. (Again. Sorry for long wait!)

Note: #1328 fixes a long-standing sign bug in getRotation() (endAngle - startAngle instead of endAngle + startAngle) so initial two-finger rotation starts at 0° rather than 2 * startAngle. If your application previously worked around the old offset, please verify rotation handling when upgrading.

Manager
  • Guard index before splicing in Manager.off() when removing an unregistered handler (#1308)
  • Skip unsupported cssProps in toggleCssProps() instead of writing element.style[undefined] (#1312)
  • Clear input and options.inputTarget DOM references on Manager.destroy() (#1325)
  • Reset recognizers and clear recognizer.manager in Manager.remove(), halt active recognize() cycles and cancel pending timers in Manager.destroy(), and guard TouchAction.set() after destroy() (#1330)
  • Restore previous inline styles and apply updated cssProps when changed via Manager.set({ cssProps }) (#1333, fixes #1286)
  • Populate data.type and data.preventDefault before dispatching DOM events when domEvents: true (#1335)
  • Stop the active session and reset recognizers when disabling a manager mid-gesture via Manager.set({ enable: false }) (#1343)
Input
  • Check srcEvent.sourceCapabilities.firesTouchEvents in TouchMouseInput to suppress synthetic mouse events (#1310)
  • Return DIRECTION_NONE only when both x and y are zero in getDirection() (#1313)
  • Snapshot PointerEventInput pointers array and remove ended/cancelled pointers from store before invoking the callback (#1316, fixes #1213)
  • Fix getRotation() to subtract the start angle instead of adding (#1328, fixes #914, #791, #1208)
  • Rebind child TouchInput and MouseInput targets and listeners in TouchMouseInput.init() on Manager.set({ inputTarget }) (#1329)
  • Reset recognizers (including PanRecognizer.pX/pY) on the next session after Manager.stop() so panstart is not skipped (#1332, fixes #811)
  • Guard zero initial pointer distance in getScale() to return 1 instead of NaN/Infinity (#1334)
  • Support standard MouseEvent.buttons bitmask alongside legacy ev.which on mousemove in MouseInput (#1336, fixes #976)
  • End stuck mouse pointers in PointerEventInput when pointermove arrives with ev.buttons === 0, and clear this.store on destroy() (#1337)
  • Avoid re-attaching manager.session.prevInput in inputHandler() after Manager.destroy() (#1341)
  • Ignore Input.domHandler events if the manager was already destroyed during the same dispatch (#1342, fixes #1016)
  • Keep already-tracked touches in TouchInput targetTouches if their child target element is detached from the DOM mid-gesture (#1345)
Recognizers
  • Check axis-specific velocity (overallVelocityX / overallVelocityY) in SwipeRecognizer when only one axis is configured (#1314)
  • Guard null lookups in Recognizer.recognizeWith(), dropRecognizeWith(), requireFailure(), and dropRequireFailure() (#1315)
  • Return STATE_FAILED in AttrRecognizer.process() when INPUT_CANCEL arrives before recognition (#1327, fixes #1050, #1132)
  • Always clear PressRecognizer._timer on INPUT_END and INPUT_CANCEL regardless of deltaTime (#1331, fixes #1129)
  • Do not recognize pans when PanRecognizer direction is set to Hammer.DIRECTION_NONE (#1338, fixes #1257)
Touch-action
  • Skip preventDefault() on non-cancelable events (srcEvent.cancelable === false) (#1311)
  • Normalize whitespace and casing in TouchAction.set() before compute and native CSS touch-action lookup (#1344)
Core & Utils
  • Return numeric -1/0/1 comparator in uniqueArray() sort for stable cross-engine pointer ordering (#1307, fixes #985)
  • Return an empty array for empty or whitespace-only strings in splitStr() (#1309)
  • Guard window, document, and navigator on module load for SSR / Node.js compatibility (#1324, fixes #1060, #930, #1245, #1296, #1290)
  • Guard prefixed() against null or undefined target objects (#1326)
  • Shallow-clone caller options in Hammer() so caller objects are not mutated and Object.freeze() options work (#1339)
  • Restore .constructor property on Recognizer, Manager, Input, and TouchAction prototypes (#1340, fixes #881)

... (truncated)

Changelog

Sourced from hammerjs's changelog.

2.0.10, 2026-11-26

Build
  • Disable ES6 arrow-function compression in uglify:min so hammer.min.js remains strictly ES5-compatible, and lint hammer.min.js as ES5 in grunt lint (#1398)

2.0.9, 2026-11-25

Note: #1328 fixes a long-standing sign bug in getRotation() (endAngle - startAngle instead of endAngle + startAngle) so initial two-finger rotation starts at 0° rather than 2 * startAngle. If your application previously worked around the old offset, please verify rotation handling when upgrading.

Manager
  • Guard index before splicing in Manager.off() when removing an unregistered handler (#1308)
  • Skip unsupported cssProps in toggleCssProps() instead of writing element.style[undefined] (#1312)
  • Clear input and options.inputTarget DOM references on Manager.destroy() (#1325)
  • Reset recognizers and clear recognizer.manager in Manager.remove(), halt active recognize() cycles and cancel pending timers in Manager.destroy(), and guard TouchAction.set() after destroy() (#1330)
  • Restore previous inline styles and apply updated cssProps when changed via Manager.set({ cssProps }) (#1333, fixes #1286)
  • Populate data.type and data.preventDefault before dispatching DOM events when domEvents: true (#1335)
  • Stop the active session and reset recognizers when disabling a manager mid-gesture via Manager.set({ enable: false }) (#1343)
Input
  • Check srcEvent.sourceCapabilities.firesTouchEvents in TouchMouseInput to suppress synthetic mouse events (#1310)
  • Return DIRECTION_NONE only when both x and y are zero in getDirection() (#1313)
  • Snapshot PointerEventInput pointers array and remove ended/cancelled pointers from store before invoking the callback (#1316, fixes #1213)
  • Fix getRotation() to subtract the start angle instead of adding (#1328, fixes #914, #791, #1208)
  • Rebind child TouchInput and MouseInput targets and listeners in TouchMouseInput.init() on Manager.set({ inputTarget }) (#1329)
  • Reset recognizers (including PanRecognizer.pX/pY) on the next session after Manager.stop() so panstart is not skipped (#1332, fixes #811)
  • Guard zero initial pointer distance in getScale() to return 1 instead of NaN/Infinity (#1334)
  • Support standard MouseEvent.buttons bitmask alongside legacy ev.which on mousemove in MouseInput (#1336, fixes #976)
  • End stuck mouse pointers in PointerEventInput when pointermove arrives with ev.buttons === 0, and clear this.store on destroy() (#1337)
  • Avoid re-attaching manager.session.prevInput in inputHandler() after Manager.destroy() (#1341)
  • Ignore Input.domHandler events if the manager was already destroyed during the same dispatch (#1342, fixes #1016)
  • Keep already-tracked touches in TouchInput targetTouches if their child target element is detached from the DOM mid-gesture (#1345)
Recognizers
  • Check axis-specific velocity (overallVelocityX / overallVelocityY) in SwipeRecognizer when only one axis is configured (#1314)
  • Guard null lookups in Recognizer.recognizeWith(), dropRecognizeWith(), requireFailure(), and dropRequireFailure() (#1315)
  • Return STATE_FAILED in AttrRecognizer.process() when INPUT_CANCEL arrives before recognition (#1327, fixes #1050, #1132)
  • Always clear PressRecognizer._timer on INPUT_END and INPUT_CANCEL regardless of deltaTime (#1331, fixes #1129)
  • Do not recognize pans when PanRecognizer direction is set to Hammer.DIRECTION_NONE (#1338, fixes #1257)
Touch-action
  • Skip preventDefault() on non-cancelable events (srcEvent.cancelable === false) (#1311)
  • Normalize whitespace and casing in TouchAction.set() before compute and native CSS touch-action lookup (#1344)
Core & Utils
  • Return numeric -1/0/1 comparator in uniqueArray() sort for stable cross-engine pointer ordering (#1307, fixes #985)
  • Return an empty array for empty or whitespace-only strings in splitStr() (#1309)
  • Guard window, document, and navigator on module load for SSR / Node.js compatibility (#1324, fixes #1060, #930, #1245, #1296, #1290)
  • Guard prefixed() against null or undefined target objects (#1326)
  • Shallow-clone caller options in Hammer() so caller objects are not mutated and Object.freeze() options work (#1339)
  • Restore .constructor property on Recognizer, Manager, Input, and TouchAction prototypes (#1340, fixes #881)

... (truncated)

Commits
  • 41c21df Merge pull request #1399 from hammerjs/chore/release-2.0.10
  • 99b98ae chore(release): v2.0.10
  • 2cb5d52 Merge pull request #1398 from hammerjs/fix/2.0-uglify-es5-arrows
  • 11241cc fix(build): disable ES6 arrow compression in hammer.min.js and lint as ES5
  • 72c12e1 Merge pull request #1355 from hammerjs/chore/release-2.0.9
  • f603d1f chore(release): v2.0.9
  • f5d738a Merge pull request #1353 from hammerjs/test/unit-index-touch-harness
  • b6dce8f test: disable window.PointerEvent in tests/unit/index.html for browser runs
  • 8605890 Merge pull request #1352 from hammerjs/chore/release-2.0.9-rc.1
  • e47d48c chore(release): v2.0.9-rc.1
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for hammerjs since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [hammerjs](https://github.com/hammerjs/hammer.js) from 2.0.8 to 2.0.10.
- [Release notes](https://github.com/hammerjs/hammer.js/releases)
- [Changelog](https://github.com/hammerjs/hammer.js/blob/master/CHANGELOG.md)
- [Commits](hammerjs/hammer.js@v2.0.8...v2.0.10)

---
updated-dependencies:
- dependency-name: hammerjs
  dependency-version: 2.0.10
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants