Fixed runtime mouse handling