huntabyte / bits-ui

The headless components for Svelte.
https://bits-ui.com
MIT License
1.32k stars 94 forks source link

[Svelte5/Command]: Broken menu list navigation using mouse #710

Closed shyakadavis closed 1 month ago

shyakadavis commented 1 month ago

Describe the bug

Hard for me to express in words, but filtering/scroll jumps around when navigating with a mouse/keypad.

Kindly have a look at the attached repro.

  1. open the menu.
  2. Scroll half-way down the menu (either with the mouse or keyboard arrows), and then slightly scroll up with your mouse.

Reproduction

https://stackblitz.com/github/shyakadavis/bits-ui-command-issue-repro

Logs

No response

System Info

Packages: +1
+
Progress: resolved 1, reused 0, downloaded 1, added 1, done

  System:
    OS: macOS 13.6.9
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 80.44 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.13.1 - ~/Library/Caches/fnm_multishells/716_1727734872916/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.5.2 - ~/Library/Caches/fnm_multishells/716_1727734872916/bin/npm
    pnpm: 9.10.0 - ~/Library/pnpm/pnpm
    bun: 0.7.3 - ~/Library/pnpm/bun
    Watchman: 2024.03.18.00 - /usr/local/bin/watchman
  Browsers:
    Chrome: 129.0.6668.60
    Safari: 17.6
  npmPackages:
    @sveltejs/kit: ^2.0.0 => 2.6.1
    bits-ui: 1.0.0-next.3 => 1.0.0-next.3
    svelte: ^5.0.0-next.1 => 5.0.0-next.260

Severity

annoyance

huntabyte commented 1 month ago

Thanks for the repro! WIll take a look soon

huntabyte commented 1 month ago

Should be closed by #714

Feel free to reopen if it didn't fix the issues!