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

[🐞] Select/Combobox Popover Cannot Scroll While Using Trackpad #979

Open
Toeler opened this issue Oct 3, 2024 · 0 comments
Open

[🐞] Select/Combobox Popover Cannot Scroll While Using Trackpad #979

Toeler opened this issue Oct 3, 2024 · 0 comments
Labels
STATUS-1: needs triage This doesn't seem right TYPE: bug Something isn't working

Comments

@Toeler
Copy link

Toeler commented Oct 3, 2024

Which package is affected?

Headless Kit

Describe the bug

When scrolling within a Select or Combobox popover, it attempts to keep the highlighted item in view, preventing you from scrolling down the list

Reproduction

https://stackblitz.com/edit/github-9qoecq-vdjdps?file=src%2Fglobal.css

Steps to reproduce

  1. Click on the trigger to open the scrollable popover list
  2. Place the mouse over one of the items in the list to highlight it
  3. Attempt to scroll down the list (using trackpad scroll on a laptop)
  • Observe that the list jumps back to keep the highlighted item in view when it is about to go out of view

System Info

System:
    OS: macOS 13.0.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 120.06 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
    npm: 10.7.0 - ~/.nvm/versions/node/v20.14.0/bin/npm
    pnpm: 9.4.0 - ~/.nvm/versions/node/v20.14.0/bin/pnpm
    Watchman: 2023.03.13.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 129.0.6668.72
    Safari: 16.1
  npmPackages:
    @builder.io/qwik: 1.9.0 => 1.9.0 
    @builder.io/qwik-city: 1.9.0 => 1.9.0 
    @qwik-ui/headless: 0.6.1 => 0.6.1 
    typescript: ^5.6.2 => 5.6.2 
    undici: ^6.19.8 => 6.19.8 
    vite: ^5.4.8 => 5.4.8

Additional Information

const checkVisibility$ = $(async (entries: IntersectionObserverEntry[]) => {

I think that this should only be triggering with the keyboard up/down navigation, and not as frequently as it is currently.

Video Repro:
https://github.com/user-attachments/assets/7cef2a70-b1a2-4abc-9fcf-3e686606c736

@Toeler Toeler added STATUS-1: needs triage This doesn't seem right TYPE: bug Something isn't working labels Oct 3, 2024
@Toeler Toeler changed the title [🐞] Select/Combobox Popover Auto-Scrolls While Scrolling [🐞] Select/Combobox Popover Cannot Scroll While Using Trackpad Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage This doesn't seem right TYPE: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant