|
@@ -1593,6 +1593,22 @@ function createHotSpot(hs) { |
|
|
div.style.cursor = 'pointer'; |
|
|
div.style.cursor = 'pointer'; |
|
|
span.style.cursor = 'pointer'; |
|
|
span.style.cursor = 'pointer'; |
|
|
a.appendChild(div); |
|
|
a.appendChild(div); |
|
|
|
|
|
} else if (hs.action) { |
|
|
|
|
|
a = document.createElement('a'); |
|
|
|
|
|
a.href = "#"; |
|
|
|
|
|
a.ontouchstart = function() { |
|
|
|
|
|
this.touchAvailable = true; |
|
|
|
|
|
hs.action(); |
|
|
|
|
|
}; |
|
|
|
|
|
a.onclick = function() { |
|
|
|
|
|
if (!this.touchAvailable) { |
|
|
|
|
|
hs.action(); |
|
|
|
|
|
} |
|
|
|
|
|
}; |
|
|
|
|
|
renderContainer.appendChild(a); |
|
|
|
|
|
div.style.cursor = 'pointer'; |
|
|
|
|
|
span.style.cursor = 'pointer'; |
|
|
|
|
|
a.appendChild(div); |
|
|
} else { |
|
|
} else { |
|
|
if (hs.sceneId) { |
|
|
if (hs.sceneId) { |
|
|
div.onclick = function() { |
|
|
div.onclick = function() { |
|
|