Change loco-scroll version in package.json and add uppercase to import, add forEach to polyfill

This commit is contained in:
Antoine Boulanger
2019-08-08 11:18:18 -04:00
parent 9058945b1a
commit 3ed1175aaf
5 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import { module } from 'modujs';
import locomotiveScroll from 'locomotive-scroll';
import LocomotiveScroll from 'locomotive-scroll';
export default class extends module {
constructor(m) {
@@ -7,7 +7,7 @@ export default class extends module {
}
init() {
this.scroll = new locomotiveScroll({
this.scroll = new LocomotiveScroll({
el: this.el,
smooth: true
});