3 ms·
The web app could maintain its own start and end points for the selection (independent of what the browser deems "selected") and apply those operations to the t
by yellowapple 7y ago
The web app could maintain its own start and end points for the selection (independent of what the browser deems "selected") and apply those operations to the text within that internally-defined range.
None of those things affect visibility, though, nor do they change the actual content (just the styling/appearance), so the "deselect on visibility or content change" approach wouldn't impact that at all anyway.