# Is the angular-material package dependency on hammerjs still needed?

**URL:** <https://jsonforms.discourse.group/t/is-the-angular-material-package-dependency-on-hammerjs-still-needed/2799>\
**Category:** General\
**Created:** [December 30, 2025, 9:07pm UTC](https://jsonforms.discourse.group/t/is-the-angular-material-package-dependency-on-hammerjs-still-needed/2799 "2025-12-30T21:07:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![thw0rted](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/thw0rted/32/1341_2.png) [@thw0rted](https://jsonforms.discourse.group/u/thw0rted)\
**Post date:** [December 30, 2025, 9:07pm UTC](https://jsonforms.discourse.group/t/is-the-angular-material-package-dependency-on-hammerjs-still-needed/2799/1 "2025-12-30T21:07:07Z")

</div>

I didn’t want to open this as a “bug report” as such, but can file an issue if that’s appropriate.

When building a modern Angular application using the Angular Material JSONForms package, a warning is shown because it imports the `hammerjs` library – the bundler complains because the package is CJS-only. On investigation, it looks like this package hasn’t been updated in a decade, and many of the browser shortcomings it aimed to address are now implemented directly in the DOM.

As far as I can tell the package is imported once at the top of `angular-material/src/library/index.ts` and none of its helpers are directly used in the rest of the codebase. If I’m missing something please let me know, but otherwise it seems like this import (and the package dependency) could probably be safely removed.

---

<div class="post-metadata">

**Author:** ![lucas-koehler](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/lucas-koehler/32/336_2.png) [@lucas-koehler](https://jsonforms.discourse.group/u/lucas-koehler)\
**Post date:** [January 7, 2026, 3:44pm UTC](https://jsonforms.discourse.group/t/is-the-angular-material-package-dependency-on-hammerjs-still-needed/2799/2 "2026-01-07T15:44:42Z")

</div>

Hi @thw0rted ,  
thanks for bringing this up. I agree that we should remove this dependency if we can do it without (greater) regressions.  
I think it might have been introduced to support the deprecated [HammerModule](https://angular.dev/api/platform-browser/HammerModule)

Could you open an issue, please?

Thanks and best regards,  
Lucas

---

<div class="post-metadata">

**Author:** ![thw0rted](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/thw0rted/32/1341_2.png) [@thw0rted](https://jsonforms.discourse.group/u/thw0rted)\
**Post date:** [January 7, 2026, 4:25pm UTC](https://jsonforms.discourse.group/t/is-the-angular-material-package-dependency-on-hammerjs-still-needed/2799/3 "2026-01-07T16:25:44Z")

</div>

Done! [GitHub · Where software is built](https://github.com/eclipsesource/jsonforms/issues/2524)

---

<div class="post-metadata">

**Author:** ![lucas-koehler](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/lucas-koehler/32/336_2.png) [@lucas-koehler](https://jsonforms.discourse.group/u/lucas-koehler)\
**Post date:** [January 8, 2026, 8:24am UTC](https://jsonforms.discourse.group/t/is-the-angular-material-package-dependency-on-hammerjs-still-needed/2799/4 "2026-01-08T08:24:48Z")

</div>

@thw0rted Thank you 🙂

---

<div class="post-metadata">

**Author:** ![thw0rted](https://yyz2.discourse-cdn.com/free1/user_avatar/jsonforms.discourse.group/thw0rted/32/1341_2.png) [@thw0rted](https://jsonforms.discourse.group/u/thw0rted)\
**Post date:** [August 13, 2026, 7:30pm UTC](https://jsonforms.discourse.group/t/is-the-angular-material-package-dependency-on-hammerjs-still-needed/2799/5 "2026-08-13T19:30:00Z")

</div>

It’s been ages I know, but just to close the loop here – Angular removed their own dep on HammerJS in version 22, back in June.
