Skip to content

Commit

Permalink
Merge branch 'recogito#127-annotating-enabled-reactive' into staging
Browse files Browse the repository at this point in the history
# Conflicts:
#	packages/text-annotator/src/SelectionHandler.ts
  • Loading branch information
oleksandr-danylchenko committed Aug 28, 2024
2 parents 1d1d4e1 + 5baebe7 commit bfeb184
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/text-annotator/src/SelectionHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export const createSelectionHandler = (
// ...then make the new annotation the current selection
selection.userSelect(currentTarget.annotation, lastDownEvent);
}
});
}, 10);

document.addEventListener('selectionchange', onSelectionChange);

Expand Down
2 changes: 1 addition & 1 deletion packages/text-annotator/src/highlight/baseRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export const createBaseRenderer = (
currentPainter.reset();

redraw();
});
}, 10);

window.addEventListener('resize', onResize);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const createRenderer = (container: HTMLElement): RendererImplementation => {
});
});

const onResize = debounce(() => resetCanvas(canvas));
const onResize = debounce(() => resetCanvas(canvas), 10);

window.addEventListener('resize', onResize);

Expand Down

0 comments on commit bfeb184

Please sign in to comment.