Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: recogito/text-annotator-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1922b43fd66cca8f0efe1e5cfb113dbc30684d73
Choose a base ref
..
head repository: recogito/text-annotator-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5d3a8a07864cc3b1d5056c7f0a12dc5ce4cc7ad1
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 packages/text-annotator/src/SelectionHandler.ts
2 changes: 1 addition & 1 deletion packages/text-annotator/src/SelectionHandler.ts
Original file line number Diff line number Diff line change
@@ -250,7 +250,7 @@ export const SelectionHandler = (
let isCollapsed = sel?.isCollapsed;
const shouldStopPolling = () => isCollapsed || stopPolling;

const pollingDelayMs = 10;
const pollingDelayMs = 1;
const stopPollingInMs = 50;
setTimeout(() => stopPolling = true, stopPollingInMs);