Skip to content

Commit 74e1515

Browse files
Update selection UI in all drawing modes (to keep selection handles in the right place)
1 parent 87638f0 commit 74e1515

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

highlight-helper.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -759,10 +759,8 @@ function Highlighter(options = hhDefaultOptions) {
759759
const width = entry.contentBoxSize[0].inlineSize;
760760
// Only respond if the annotatable content width changed
761761
if (width !== previousWidth) {
762-
if (options.drawingMode === 'svg') {
763-
this.drawHighlights();
764-
if (previousSelectionRange) updateSelectionUi('bounds');
765-
}
762+
if (options.drawingMode === 'svg') this.drawHighlights();
763+
if (previousSelectionRange) updateSelectionUi('bounds');
766764
previousWidth = width;
767765
}
768766
}

0 commit comments

Comments
 (0)