From f176e29c887f817940a911540c765fafaef8d336 Mon Sep 17 00:00:00 2001 From: PhobosK Date: Sat, 6 Sep 2014 10:54:18 +0300 Subject: [PATCH] Fix iOS onclick + hover bug --- src/js/pannellum.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index a9f2da9..7b2d0f8 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -582,6 +582,10 @@ function createHotSpots() { loadScene(hs.sceneId); return false; }; + div.ontouchend = function() { + loadScene(hs.sceneId); + return false; + }; div.style.cursor = 'pointer'; span.style.cursor = 'pointer'; }