Skip to content

WebUI: Introduce a delay for context menu submenus #23252

@teslasystemsx

Description

@teslasystemsx

qBittorrent & operating system versions

qBittorrent: 5.1.2
Host OS: Windows 10, but it doesn't matter
WebUI OS: Windows and I think other desktop OSes
Browser: Firefox 142

What is the problem?

There is an issue with context menus in WebUI. Let's assume, you want to copy a magnet link of some torrent. You make a right-click on it, move mouse cursor to 'Copy' menu item, and after that a submenu with available items appears. And here is the problem. I think, every user chooses the shortest path when moving a mouse cursor. And the shortest path to 'Magnet link' item is diagonal. But when you move the cursor diagonally, the submenu with available items will disappear.

Image

.
As a result, you should choose a "square angle" path to reach the needed item, i. e. you should remain on 'Copy' item while moving the cursor to submenu:

Image

Such behavior is very inconvenient and annoying. And this is because there is no any delay between hovering a mouse cursor over an item and appearing/disappearing of submenu.

This delay exists in every normal context menu implementation specifically to eliminate this problem. And I think it should be added here too.

Steps to reproduce

No response

Additional context

No response

Log(s) & preferences file(s)

.

Metadata

Metadata

Assignees

No one assigned

    Labels

    WebUIWebUI-related issues/changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions