Comment by netbioserror

Comment by netbioserror 5 hours ago

4 replies

We should probably be making widget toolkits for the Canvas and using WebSockets for communication. DOM manipulation is a total hack-job. It's somewhat flexible, but the performance and dark-pattern cost is just too great. If you're making an interactive application, then treat it like an application and draw widgets to a canvas.

ioseph 4 hours ago

This is an insane take, show me a responsive button with hover state and a tooltip implemented in the canvas that outperforms a button rendered with React.

christophilus 5 hours ago

Accessibility suffers with that approach.

  • extra88 4 hours ago

    It doesn't just suffer it's impossible unless you recreate the whole thing with actual HTML behind the <canvas> rendered version.