From bafd4b2261e7317233475edf09432f5f5c53cd20 Mon Sep 17 00:00:00 2001 From: Antoine Vandecreme Date: Tue, 10 Feb 2015 18:57:34 -0500 Subject: [PATCH] Scalebar now ignore clicks on recent browsers (fix #2) --- openseadragon-scalebar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/openseadragon-scalebar.js b/openseadragon-scalebar.js index d5cf69c..5cf5ea6 100644 --- a/openseadragon-scalebar.js +++ b/openseadragon-scalebar.js @@ -90,6 +90,7 @@ this.viewer.container.appendChild(this.divElt); this.divElt.style.position = "relative"; this.divElt.style.margin = "0"; + this.divElt.style.pointerEvents = "none"; this.setMinWidth(options.minWidth || "150px");