Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menubar click drag release not implemented #1069

Open
iojanis opened this issue May 4, 2024 · 1 comment
Open

Menubar click drag release not implemented #1069

iojanis opened this issue May 4, 2024 · 1 comment

Comments

@iojanis
Copy link

iojanis commented May 4, 2024

Describe the bug

With shadcn (react or vue) menubars, rightclick menus etc. would appear on click and would register the mouse release as the next click. This enables macOS style click->drag->release functionality. This svelte port only registers mouse up events.

Reproduction

Menubar example. Click on a Menuitem and drag the mouse. The context window wont show up.

Logs

No response

System Info

...

Severity

annoyance

@AdrianGonz97
Copy link
Collaborator

Thanks for raising an issue. It took me a bit to understand the issue, but I think I got there.


Here's a quick demo of how it works in shadcn for react:

Starting on a menu trigger, hold down left click and move to begin expanding all of the menus. On release, the selected menu option will trigger.
img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants