Ver código fonte

Revert pull request #74 since it broke the display of hot spot tooltips.

pull/86/head
Matthew Petroff 9 anos atrás
pai
commit
fb48a9d2b6
2 arquivos alterados com 5 adições e 5 exclusões
  1. +3
    -3
      src/css/pannellum.css
  2. +2
    -2
      src/js/pannellum.js

+ 3
- 3
src/css/pannellum.css Ver arquivo

@@ -282,7 +282,7 @@ body {
position: absolute;
height: 26px;
width: 26px;
display: none;
visibility: hidden;
cursor: default;
border-radius: 13px;
vertical-align: middle;
@@ -300,7 +300,7 @@ body {
}

div.pnlm-tooltip span {
display: none;
visibility: hidden;
position: absolute;
border-radius: 3px;
background-color: rgba(0,0,0,0.7);
@@ -313,7 +313,7 @@ div.pnlm-tooltip span {
cursor: default;
}
div.pnlm-tooltip:hover span{
display: block;
visibility: visible;
}
div.pnlm-tooltip:hover:after {
content: '';


+ 2
- 2
src/js/pannellum.js Ver arquivo

@@ -1078,9 +1078,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.display = 'none';
hs.div.style.visibility = 'hidden';
} else {
hs.div.style.display = 'block';
hs.div.style.visibility = 'visible';
// Subpixel rendering doesn't work in Firefox
// https://bugzilla.mozilla.org/show_bug.cgi?id=739176
var transform = 'translate(' + (-renderer.canvas.width /


Carregando…
Cancelar
Salvar