NMilicic / ngx-bootstrap-product-tour

Angular product tour library
MIT License
12 stars 16 forks source link

containerScrollTop is not defined #16

Open Arjuna96 opened 6 years ago

Arjuna96 commented 6 years ago

Hi,

I'm getting this error when clicked on next in steps,

ERROR ReferenceError: containerScrollTop is not defined at withinviewport (VM17853 vendor.bundle.js:15051) at NgxBootstrapProductTourDirective.webpackJsonp.../../../../ngx-bootstrap-product-tour/ngx-bootstrap-product-tour/ngx-bootstrap-product-tour.es5.js.NgxBootstrapProductTourDirective.showTourStep (VM17853 vendor.bundle.js:15179) at NgxBootstrapProductTourService.webpackJsonp.../../../../ngx-bootstrap-product-tour/ngx-bootstrap-product-tour/ngx-bootstrap-product-tour.es5.js.NgxBootstrapProductTourService.showStep (VM17853 vendor.bundle.js:14880) at NgxBootstrapProductTourService.webpackJsonp.../../../../ngx-bootstrap-product-tour/ngx-bootstrap-product-tour/ngx-bootstrap-product-tour.es5.js.NgxBootstrapProductTourService.setCurrentStep (VM17853 vendor.bundle.js:14862) at VM17853 vendor.bundle.js:14830 at wrapped (VM17853 vendor.bundle.js:39001) at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (VM17849 polyfills.bundle.js:2942) at Object.onInvokeTask (VM17853 vendor.bundle.js:100742) at ZoneDelegate.webpackJsonp.../../../../zone.js/dist/zone.js.ZoneDelegate.invokeTask (VM17849 polyfills.bundle.js:2941) at Zone.webpackJsonp.../../../../zone.js/dist/zone.js.Zone.runTask (VM17849 polyfills.bundle.js:2709) at webpackJsonp.../../../../zone.js/dist/zone.js.ZoneTask.invokeTask (VM17849 polyfills.bundle.js:3016) at ZoneTask.invoke (VM17849 polyfills.bundle.js:3005) at timer (VM17849 polyfills.bundle.js:4557)

garethedge commented 5 years ago

@Arjuna96 Did you manage to solve this?

Arjuna96 commented 5 years ago

@garethedge No, I couldn't solve it?

sanatani9 commented 5 years ago

faced same error

this.tourService.initialize(steps, {{ '{' }} route: '', placement: 'left', preventScrolling: true,//this will solve your error too, });

see here https://www.npmjs.com/package/ngx-bootstrap-product-tour#defaults