Pārlūkot izejas kodu

Moving from visibility to display due to Chrome bug

If you animate the hotspot (which is not the default case for pannellum, but which it could be) with an infinite CSS keyFrame animation, `vissibility:hidden` has an error in Chrome, as I described here: http://stackoverflow.com/questions/30167467/css-infinite-animation-after-hidden-is-not-resetted-chrome
pull/74/head
Didac pirms 9 gadiem
vecāks
revīzija
379dd04274
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      src/js/pannellum.js

+ 2
- 2
src/js/pannellum.js Parādīt failu

@@ -1072,9 +1072,9 @@ function renderHotSpots() {
var z = hsPitchSin * configPitchSin + hsPitchCos * yawCos * configPitchCos;
if ((hs.yaw <= 90 && hs.yaw > -90 && z <= 0) ||
((hs.yaw > 90 || hs.yaw <= -90) && z <= 0)) {
hs.div.style.visibility = 'hidden';
hs.div.style.display = 'none';
} else {
hs.div.style.visibility = 'visible';
hs.div.style.display = 'block';
// Subpixel rendering doesn't work in Firefox
// https://bugzilla.mozilla.org/show_bug.cgi?id=739176
var transform = 'translate(' + (-renderer.canvas.width /


Notiek ielāde…
Atcelt
Saglabāt