Skip to content

Instantly share code, notes, and snippets.

@xola139
Created March 11, 2020 05:07
Show Gist options
  • Save xola139/258e16d9030a17d0147fc0fd09f5ef79 to your computer and use it in GitHub Desktop.
Save xola139/258e16d9030a17d0147fc0fd09f5ef79 to your computer and use it in GitHub Desktop.
solution HammerGestureConfig cannot be invoked
A temporary fix that works 100 for now :
in the file ngx-gallery.umd.js changes this lines of code :
var CustomHammerConfig = /** @Class */ (function (_super) {
__extends(CustomHammerConfig, _super);
function CustomHammerConfig() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.overrides = ({
'pinch': { enable: false },
'rotate': { enable: false }
});
return _this;
}
return CustomHammerConfig;
}(platformBrowser.HammerGestureConfig));
to :
class CustomHammerConfig extends platformBrowser.HammerGestureConfig {
constructor() {
super(...arguments);
this.overrides = ({
'pinch': { enable: false },
'rotate': { enable: false }
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment