Fixes mouse selection bugs from scrolling the window or map.