We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87638f0 commit 74e1515Copy full SHA for 74e1515
highlight-helper.js
@@ -759,10 +759,8 @@ function Highlighter(options = hhDefaultOptions) {
759
const width = entry.contentBoxSize[0].inlineSize;
760
// Only respond if the annotatable content width changed
761
if (width !== previousWidth) {
762
- if (options.drawingMode === 'svg') {
763
- this.drawHighlights();
764
- if (previousSelectionRange) updateSelectionUi('bounds');
765
- }
+ if (options.drawingMode === 'svg') this.drawHighlights();
+ if (previousSelectionRange) updateSelectionUi('bounds');
766
previousWidth = width;
767
}
768
0 commit comments