• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

chartjs / chartjs-plugin-zoom / 35051679740
89%

Build:
DEFAULT BRANCH: master
Ran 16 Sep 2026 03:25AM UTC
Jobs 5
Files 9
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Sep 2026 03:24AM UTC coverage: 89.089% (+1.1%) from 87.962%
35051679740

push

github

web-flow
Replace Hammer.js with native Pointer Events (#950)

Hammer.js (last released 2016) was a required dependency only for touch
pinch/pan gesture recognition. Reimplement gesture handling on top of the
browser's native Pointer Events in src/gestures.ts, preserving the pan/pinch
behaviour, the pan threshold, the mouse modifier-key gate and the callback
contract (onPanStart/onPanRejected/onZoomStart/...). As Hammer did, the
manager disables browser touch-actions and text selection (user-select) on
the canvas while it is active, and restores the previous values on teardown.

The plugin now has zero runtime dependencies: both hammerjs and
@types/hammerjs are dropped, along with the hammer-simulator/ng-hammerjs test
and docs helpers. Karma gesture specs are driven with synthetic PointerEvents
instead of the Hammer simulator.

At most two pointers take part in a gesture, so a stray third finger can
neither restart nor end a pinch, and a mouse gesture only starts on the
primary button. A second pointer now always ends a pan in progress, whether
or not pinch is enabled: Hammer cancelled its Pan recognizer in that case
but signalled it through pancancel, which the old code never subscribed to,
so state.panning leaked and the chart stopped responding to events. For the
same reason pointercancel aborts a gesture instead of completing it, and
tearing down the manager mid-gesture no longer leaves pan state behind for
the next one to resume.

Co-authored-by: Michel Jung <michel@micheljung.ch>

320 of 404 branches covered (79.21%)

Branch coverage included in aggregate %.

163 of 173 new or added lines in 2 files covered. (94.22%)

815 of 870 relevant lines covered (93.68%)

1274.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
8
91.02
src/gestures.ts
2
85.14
-0.76% src/plugin.ts
Jobs
ID Job ID Ran Files Coverage
1 windows-latest-firefox - 35051679740.1 16 Sep 2026 03:26AM UTC 9
88.53
GitHub Action Run
2 ubuntu-latest-firefox - 35051679740.2 16 Sep 2026 03:25AM UTC 9
88.24
GitHub Action Run
3 windows-latest-chrome - 35051679740.3 16 Sep 2026 03:26AM UTC 9
88.24
GitHub Action Run
4 ubuntu-latest-chrome - 35051679740.4 16 Sep 2026 03:25AM UTC 9
87.86
GitHub Action Run
5 unit - 35051679740.5 16 Sep 2026 03:25AM UTC 3
57.77
GitHub Action Run
Source Files on build 35051679740
  • Tree
  • List 9
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #35051679740
  • 98705656 on github
  • Prev Build on master (#35051089596)
  • Next Build on master (#35051742794)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc