Fix bug with dragging in scrolled window