4 ms·
By placing the right elements at the right place, you can have native input and text selection, but that’s not just WebGL anymore; That’s a regular (but transpa
by contriban 5y ago
By placing the right elements at the right place, you can have native input and text selection, but that’s not just WebGL anymore; That’s a regular (but transparent) webpage with a WebGL background that mimics your input. It takes quite a bit of effort to emulate that effectively since there’s no guarantee that the visible text rendered by WebGL renders with what the browser renders outside it. Probably the 80/20 rule applies here.
- ithkuil 5y agoI inspected the DOM while selecting and I didn't find the hidden text element. Perhaps it was there and I didn't know how to find it. Is this a more likely approach than just drawing the selection highlight and emulating the whole thing in canvas?