Browse Source

Prevent Chrome from selecting off-screen hot spot with tab (#1120).

pull/1131/head
Matthew Petroff 2 years ago
parent
commit
929ec8f11c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/js/pannellum.js

+ 1
- 0
src/js/pannellum.js View File

@@ -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;


Loading…
Cancel
Save