Skip to content

Commit

Permalink
Allow whitespace with --pointermap CSS
Browse files Browse the repository at this point in the history
Any leading or trailing whitespace is now removed from the value for the `--pointermap` CSS property. This allows it to
act more like a standard CSS property where leading and trailing whitespace is not significant, and it allows the CSS
author to format their code more freely.

Fixes RPTools#2348.
  • Loading branch information
kwvanderlinde committed Apr 28, 2021
1 parent 8105053 commit b639177
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ HTMLOverlayPanel.mousePassResult getMousePassResult(int x, int y) {
if (element == null) {
return HTMLOverlayPanel.mousePassResult.BLOCK;
} else {
String pe = (String) element.eval(SCRIPT_GET_POINTERMAP);
String pe = ((String) element.eval(SCRIPT_GET_POINTERMAP)).trim();
if ("blockopaque".equals(pe)) return HTMLOverlayPanel.mousePassResult.CHECK_OPACITY;
if ("block".equals(pe)) return HTMLOverlayPanel.mousePassResult.BLOCK;
return HTMLOverlayPanel.mousePassResult.PASS;
Expand Down

0 comments on commit b639177

Please sign in to comment.