Javascript – How to detect which element is hovered on a CanvasRenderingContext2D with transformations?
I have a canvas on which I applied a few transformations (mostly translation to place the origin in the middle and a scale to zoom). I now want to find out if the cursor hovers an element drawn on the…