Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panoMarker does not work correctly on firefox #36

Open
colideum opened this issue Nov 8, 2017 · 1 comment
Open

panoMarker does not work correctly on firefox #36

colideum opened this issue Nov 8, 2017 · 1 comment

Comments

@colideum
Copy link

colideum commented Nov 8, 2017

panoMarker on Chrome remains on the very same correct place.
when tried to move panorama on Firefox ESR 45.7.0 (Your sample with bicycle), info icon moves away from the seat.

@jaydubal
Copy link

jaydubal commented Nov 8, 2017

change

this.povToPixel_ = !!window.chrome ? PanoMarker.povToPixel3d :
PanoMarker.povToPixel2d;

TO

this.povToPixel_ = PanoMarker.povToPixel2d;
var pixelCanvas = document.createElement("canvas");

if (pixelCanvas && (pixelCanvas.getContext("experimental-webgl") || pixelCanvas.getContext("webgl"))) {
   this.povToPixel_ = PanoMarker.povToPixel3d;
 }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants