Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
controls/color-by: Debounce position updates so that typing is smooth
This avoids triggering a new state on every keypress in a short sequence, which is not only slow but inconsistent with expectations that intermediate colorations are shown while, for example, backspacing a position input to delete it. 400ms seemed about right in my testing (300ms was too quick for most typists, 500ms seemed sluggish), but that value may want to be adjusted.
- Loading branch information