Fix canvas mouse tracking