From b214ec1bae9256cd3bf4eb82cf113f908527e97b Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Wed, 23 Jan 2019 17:11:07 -0500 Subject: [PATCH] Ensure pointer-events style is set to auto at element picker launch Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/393 --- src/js/scriptlets/element-picker.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/js/scriptlets/element-picker.js b/src/js/scriptlets/element-picker.js index b4ee33467..914aa6131 100644 --- a/src/js/scriptlets/element-picker.js +++ b/src/js/scriptlets/element-picker.js @@ -1687,6 +1687,12 @@ const pickerCSSStyle = [ ].join(' !important;'); pickerRoot.style.cssText = pickerCSSStyle; +// https://github.com/uBlockOrigin/uBlock-issues/issues/393 +// This needs to be injected as an inline style, *never* as a user styles, +// hence why it's not added above as part of the pickerCSSStyle +// properties. +pickerRoot.style.setProperty('pointer-events', 'auto', 'important'); + const pickerCSS1 = [ `#${pickerRoot.id} {`, pickerCSSStyle,