anvaka / panzoom

Universal pan and zoom library (DOM, SVG, Custom)
https://anvaka.github.io/panzoom/demo/attach-via-script.html
MIT License
1.81k stars 292 forks source link

Keep getting this error in browser console #118

Closed navneetsingh-cpu closed 5 years ago

navneetsingh-cpu commented 5 years ago

Using Chrome latest 74 desktop Windows 10

image

Error comes from domController.js domElement.scrollTop = 0; image

using


Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.6
@angular-devkit/build-angular     0.800.6
@angular-devkit/build-optimizer   0.800.6
@angular-devkit/build-webpack     0.800.6
@angular-devkit/core              8.0.6
@angular-devkit/schematics        8.0.6
@angular/cdk                      8.0.1
@angular/cli                      8.0.6
@angular/material                 8.0.1
@ngtools/webpack                  8.0.6
@schematics/angular               8.0.6
@schematics/update                0.800.6
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.30.0
    "panzoom": "^8.1.0",
rbonomo commented 5 years ago

Look at your URL man. Then look at the HTTP status code you are getting.

https://mywebsite.com/undefined ???

rbonomo commented 5 years ago

You've got some bundling process going on as your vendor.js file is 14k lines long. Your chrome debugger is probably wiggin out and the error isn't actually occurring on that line. Try to just include panzoom with a script tag, take it our of your bundle, and see if you still get the error.