Bookmark drag and drop does not allow bookmark to be dropped into the second slot
Affected version
- Nightly flatpak: Yes 46.alpha.0-03054e22
- Other: 44.2.1 / Ubuntu 23.04
Steps to reproduce
- Have at least three bookmarks in the sidebar. (easier to reproduce with at least six or seven)
- Resize (shrink) the Files window so that the vertical scrollbar appears in the sidebar.
- Scroll down in the sidebar to display the bookmarks section.
- Take a bookmark from the second slot or lower and try to drag and drop it below the first bookmark. Or, take the first bookmark and try to drag and drop it back into the first slot where it was located.
Current behavior
Bookmarks cannot be placed in the second slot, and the first bookmark cannot be placed back in the first slot.
Expected behavior
After scrolling down in the sidebar, I should be able to take a bookmark near the bottom of the list and drop it into the second slot.
Additional information
The issue occurs if the drag and drop action follows a change in the vertical scrollbar, regardless if the scrollbar was moved with a mouse grab, moved using the mouse scroll wheel, or moved by a previous drag and drop action. Also note that while dragging a bookmark the sidebar is momentarily shortened before the bookmark is dropped back into the list. Meaning that if the Files window is sized such that all locations do fit on the sidebar while dragging a bookmark, then the issue does not occur. So to consistently reproduce the issue, the window needs to be sized small enough so that the scrollbar is not 100% of the sidebar, or add some more bookmarks to the sidebar.