News for hackers. Stuff that matters.
Re:Three ways of handling user input by ianbicking on Friday January 07, 2022 @10:40AM (#29840367)
I feel like approach #3 could have been implemented without abro.or() and it would have been fine and had a little less magic. Though looking at the code I realize you'd need something like `await abro.any(events.pointermove, events.pointerup, windowEvents.keydown)` and a good way to determine which kind of event you got, and finally abro.any() doesn't exist. So maybe abro.or() (representing a group of complementary event handlers) is better than the alternative.

There are no comments on this comment yet.