Fix mouse actions and out for frames and devices