Fix mouse selection with scrolling (still needs work to be usable)