From 929ec8f11c123870a95a3706b348f13722543727 Mon Sep 17 00:00:00 2001 From: Matthew Petroff Date: Sun, 9 Oct 2022 17:13:06 -0400 Subject: [PATCH] Prevent Chrome from selecting off-screen hot spot with tab (#1120). --- src/js/pannellum.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/pannellum.js b/src/js/pannellum.js index a5ab5a7..950f6cb 100644 --- a/src/js/pannellum.js +++ b/src/js/pannellum.js @@ -1856,6 +1856,7 @@ function createHotSpot(hs) { hs.yaw = Number(hs.yaw) || 0; var div = document.createElement('div'); + div.tabIndex = -1; div.className = 'pnlm-hotspot-base'; if (hs.cssClass) div.className += ' ' + hs.cssClass;