4 ms·
I don't know but Figma do it without issues, maybe there are some hidden inputs behind the canvas that are selected
by dezmou 5y ago
I don't know but Figma do it without issues, maybe there are some hidden inputs behind the canvas that are selected
- amelius 5y agoWouldn't that cause security issues which should be blocked by browsers? I.e. on some malicious website you could select some innocent looking text, but under the covers it selects some evil bash command.
- remram 5y agoThis is already possible with tiny or invisible text, I don't think browsers are trying to protect from that. The protections that exist are to prevent sites from reading your clipboard or replacing it without you clicking on anything, other than that the site already has control over what goes in it.