Skip to content

Commit

Permalink
Issue #23: Use this.#hammer.input.element on destroy().
Browse files Browse the repository at this point in the history
  • Loading branch information
Ambient-Impact committed Oct 27, 2024
1 parent ed5bcf3 commit f86dfc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/sidebars.gestures.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ AmbientImpact.addComponent('OmnipediaSiteThemeSidebarsGestures', function(
// Hammer doesn't remove this when destroyed.
//
// @see https://github.com/hammerjs/hammer.js/pull/965
$(document.documentElement).css('touch-action', '');
$(this.#hammer.input.element).css('touch-action', '');

return Promise.resolve();

Expand Down

0 comments on commit f86dfc9

Please sign in to comment.