Skip to content

Conversation

vafada
Copy link
Contributor

@vafada vafada commented Sep 9, 2025

fixes #23252

this is a CSS-only fix to add a delay when closing the sub-menu in WebUI.

video show it works (ubuntu screen recorder doesn't show the mouse pointer), you can see the copy submenu doesn't go away immediately when the export .torrent menu item gets hovered

Screencast.from.2025-09-09.15-08-45.webm

Though adding a delay can result a small window of overlapping submenu (can be also screen in the video)

@xavier2k6 xavier2k6 added the WebUI WebUI-related issues/changes label Sep 9, 2025
@vafada vafada changed the title add delay when closing submenu in webUI WebUI: Add delay when closing submenu in WebUI Sep 10, 2025
@Piccirello
Copy link
Member

Haven't tested yet but this is awesome.

@Chocobo1 Chocobo1 added this to the 5.2 milestone Sep 12, 2025
Use css shorthand

Co-authored-by: Chocobo1 <[email protected]>
@vafada vafada requested a review from Chocobo1 September 12, 2025 18:33
@Chocobo1 Chocobo1 requested a review from a team September 12, 2025 18:37
@thalieht
Copy link
Contributor

From #23252:

I think, every user chooses the shortest path when moving a mouse cursor. And the shortest path to 'Magnet link' item is diagonal.

IMO this is not fulfilled for all submenus because of

Though adding a delay can result a small window of overlapping submenu (can be also screen in the video)

Try changing a category the way the user above expects and you'll end up with the tags submenu replacing the categories submenu. The window of overlap is not small at all for the purpose described above and the video doesn't really show how annoying it is because there is no interaction with such a submenu when that happens (in the video).

@vafada
Copy link
Contributor Author

vafada commented Sep 14, 2025

From #23252:

I think, every user chooses the shortest path when moving a mouse cursor. And the shortest path to 'Magnet link' item is diagonal.

IMO this is not fulfilled for all submenus because of

Though adding a delay can result a small window of overlapping submenu (can be also screen in the video)

Try changing a category the way the user above expects and you'll end up with the tags submenu replacing the categories submenu. The window of overlap is not small at all for the purpose described above and the video doesn't really show how annoying it is because there is no interaction with such a submenu when that happens (in the video).

I see. It's because the Tag and Category menu item are on top of each other, moving the mouse diagonally causes the Tag menu to get "hovered"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WebUI WebUI-related issues/changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebUI: Introduce a delay for context menu submenus

5 participants