Created
March 11, 2020 05:07
-
-
Save xola139/258e16d9030a17d0147fc0fd09f5ef79 to your computer and use it in GitHub Desktop.
solution HammerGestureConfig cannot be invoked
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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