Search and avoid invisible rows/columns for mouse resizing