Skip to content

[Bug] ArcGIS Click & Hover Events Not Firing in Chrome For Windows Users v9.0.40 #9737

@nverjinski

Description

@nverjinski

Description

Description
When using @deck.gl/arcgis v9.0.40, IconLayer click and hover handlers don't work for Windows users who are using Chrome. We are seeing this same bad behavior in the PolygonLayer as well for Chrome users on Windows.

I've created a Code Sandbox example where I use javascript to render an icon to the Esri map using an IconLayer. Hovering and clicking the icon will produce console logging messages for users on a Mac, but there will be no logs for Windows users who hover or click the icon on Chrome. Hover and Click handlers will however work for Windows Users on Firefox.

❌ This sandbox reproduces the problem. Mac users' hover and click events will fire regardless of browser but will not for Windows users on Chrome.
🔗 Broken Example (v9.0.40)

Upgrading to deck.gl/arcgis v9.1.x is unfortunately not an option since layers don't render to the map as mentioned in this bug report

Flavors

  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CARTO
  • ArcGIS

Expected Behavior

As a Windows user using Chrome, I expect hover and click events for IconLayer and PolygonLayer to fire.

Actual Behavior: Hover and Click events for elements within the IconLayer and PolygonLayer do not fire. If I switch to FireFox or switch to a Mac, hover and click events will fire as expected.

Steps to Reproduce

Observe the Bug

  1. Open this Code Sandbox using Chrome on a Windows machine: https://codesandbox.io/p/devbox/laughing-cray-k2fgr3
  2. Observe an icon on an Esri map.
  3. Open the developer tools to get access to the dev console
  4. Hover and click the icon on the map.
  5. Result: no logs will be printed to the console as the hover and click events will not fire

Prove that this works on a Mac:

  1. Open this Code Sandbox on any browser on a Mac (or use FireFox on Windows): https://codesandbox.io/p/devbox/laughing-cray-k2fgr3
  2. Observe an icon on an Esri map.
  3. Open the developer tools to get access to the dev console
  4. Hover and click the icon on the map.
  5. Result: you will see hover and click logs being printed to the console because these events are working properly
Image

Environment

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions