Drag-and-drop ordering function cannot be used normally when some items are hidden

Steps to reproduce

After hiding a certain button on the ribbon, the drag-and-drop ordering function cannot be used normally.

reproduce steps:

  1. don’t hide any button in ribbon, can drag the last button from current position to position 2/3/4/5/6.

image

  1. Hide any buton, drag the last button from current position to position 1, it would be dropped on order 3, which should be order 4. Drag it from current position to position 2, it would be dropped on order 2, which should be order 3.

image

Also, drag the first button from current position to position 3, it would be dropped in original order. And drag to position 2, dropped on order 2.

Did you follow the troubleshooting guide? [Y/N]

Y

Expected result

see above

Actual result

see above

Environment

SYSTEM INFO:
Obsidian version: v1.6.0
Installer version: v1.5.8
Operating system: Windows 10 Education 10.0.22635
Login status: logged in
Catalyst license: supporter
Insider build toggle: on
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 0
Plugins enabled: 0

RECOMMENDATIONS:
none


Additional information

Bug report from Chinese forum user. If you know know Chinese, can see BUG:左边栏:排序时被隐藏按钮列表下标干扰,导致按钮放置时位置不对 - 建议反馈 - Obsidian 中文论坛

tracking …
Hidden items can confuse the final ordering

will be fixed v1.7. No ETAs.