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 Sep 10, 2024
2 parents dbc7c1f + a4079b0 commit 56801de
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 @@ -166,7 +166,7 @@ export const createSelectionHandler = (
// ...then make the new annotation the current selection
selection.userSelect(currentTarget.annotation, lastDownEvent);
}
});
}, 10);

/**
* Select events don't carry information about the mouse button
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 = <T extends TextAnnotatorState = TextAnnotatorS
currentPainter?.reset();

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

window.addEventListener('resize', onResize);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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 56801de

Please sign in to comment.