Fix mouse on viewport changes