Skip to content

Prevent UI hangs in find and replace / go to line processing #202

@WebCoder49

Description

@WebCoder49

Typing some text to find and replace or a line number to go to can cause slowness now and make the next keystroke not be displayed for a while, so the processing to find and highlight text or find line length should not be carried out for every fast keystroke. Debounce it like this or with the requestAnimationFrame method used in code-input.js core.

This will probably require added timeouts for the findandreplace/gotoline tests.

Metadata

Metadata

Assignees

Labels

area:existing-pluginA bug/feature for an existing plugin in the plugins folder of code-input.bugSomething isn't workingpriority:high

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions