Fix Mouse position in canvas with margins or padding
Fix Mouse position in canvas with margins or padding

The mouse position in an element is measured from the top left corner. When a margin or padding is used this starts outside the drawable area of the canvas. This needs to be taken into account.
cykod/Quintus,cykod/Quintus,jeronimo/Quintus,jeronimo/Quintus