mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

Search JS v1.3.0 - Touchpad clicks don't register on dropdown suggestions

Open kefir123 opened this issue 4 months ago • 3 comments

Description:

  • Component: MapboxSearchBox from @mapbox/search-js-web v1.3.0
  • Issue: Touchpad clicks on dropdown suggestions don't trigger selection
  • Environment: Windows laptops with touchpads
  • Expected: Touchpad clicks should behave like mouse clicks
  • Actual: Only external mouse clicks and keyboard navigation work

Reproduction:

  • Attached HTML file demonstrates the issue in isolation
  • No external dependencies or complex application code involved
  • Bug is reproducible across different browsers

Technical Details:

  • Library: @mapbox/search-js-web v1.3.0
  • Browser: [Your browser version]
  • OS: Windows [Your version]
  • Device: [Your laptop model with touchpad]

mapbox-touchpad-bug-demo.html

kefir123 avatar Sep 09 '25 00:09 kefir123

unable to reproduce with the html attached.

armallipeddi avatar Sep 09 '25 15:09 armallipeddi

Have you tried running HTML on a Windows laptop? Take a look at this short video of the error: https://youtu.be/rNs9T2gnRn0

The first attempt was to click with the notebook's touchpad. As you can see, the geolocation isn't being read, and nothing happens after closing Dropbox. The second attempt was to click with the mouse. The address is being read correctly and displayed below.

If you still can't reproduce the error, please describe how it looks for you.

kefir123 avatar Oct 24 '25 02:10 kefir123

I have a teammate who is experiencing this issue. They have a Framework laptop with a touchpad running Windows. As noted in the original description above, the issue only occurs on Windows with touchpad clicks. The issue has not been reproducible for us on Windows with external mouse or on macOS (with touchpad or mouse).

There is a related Stack Overflow thread with similar reports. Quoting one of comments:

Click with mouse - WORKS Arrow Down + enter - WORKS Note book touch pad - DOES NOT WORK

It would be good if the issue can be fixed soon. We are rolling out a new Mapbox-based map and this issue will likely affect many of our users.

chrispcampbell avatar Nov 03 '25 21:11 chrispcampbell