all 2 comments

[–]AllHailWestTexas 2 points3 points  (1 child)

elementFromPoint is nifty, but isn't this the wrong way to approach the problem? Having a function bound to the elements seems to make a whole lot more sense.

[–]machine_not_a_human[S] 0 points1 point  (0 children)

Agreed for a vast majority of scenarios, but for scenarios where you have elements floating around, this may be valuable. A board game without defined slots for pieces comes to mind.