I'm doing region selection over an image. The selection has to follow the image pixel grid, and fun things happen on high zoom levels.
You need to convert the mouse coordinates from screen to image space. The obvious solution is transform, then round(), to snap to the image pixel grid.
But it feels shit.
This is also what you'd likely get from the "AI writes code" experiments. How is the AI going to know that something it did, otherwise technically sound, doesn't *feel* good?