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

Markers disappear when panning in WebKitGTK #9220

Open
3 of 4 tasks
marcinbugaj opened this issue Jan 16, 2024 · 4 comments
Open
3 of 4 tasks

Markers disappear when panning in WebKitGTK #9220

marcinbugaj opened this issue Jan 16, 2024 · 4 comments
Labels
bug compatibility Cross-browser/device/environment compatibility

Comments

@marcinbugaj
Copy link

Checklist

  • I've looked at the documentation to make sure the behavior isn't documented and expected.
  • I'm sure this is an issue with Leaflet, not with my app or other dependencies (Angular, Cordova, React, etc.).
  • I've searched through the current issues to make sure this hasn't been reported yet.
  • I agree to follow the Code of Conduct that this project adheres to.

Steps to reproduce

  1. Install WebKitGTK based browser. Could be epiphany in ubuntu 22.04 (apt install epiphany-browser)
  2. Load https://leafletjs.com/
  3. This website has an example with 1 marker. Pan the map so that the marker is not visible. Then move to the area where the marker should be present. It disappears.

I spotted the issue when writing UI for webview based application using https://github.com/Boscop/web-view . As already said, it can be reproduced using epiphany browser that is based on WebKitGTK 2.36

Expected behavior

The marker should not disappear. It behaves correctly in chrome.

Current behavior

The marker disappears.

Minimal example reproducing the issue

No response

Environment

  • Leaflet version: 1.9.4
  • Browser (with version): epiphany-browser 42.1-1 from ubuntu 22.04
  • OS/Platform (with version): Linux
@marcinbugaj marcinbugaj added bug needs triage Triage pending labels Jan 16, 2024
@IvanSanchez
Copy link
Member

Can reproduce on Epiphany 45.2 on Debian.

Resetting the marker's translate3D CSS rule via devtools makes the marker reappear.

@IvanSanchez IvanSanchez added compatibility Cross-browser/device/environment compatibility and removed needs triage Triage pending labels Jan 16, 2024
@IvanSanchez
Copy link
Member

I suspect that messing with L.DomUtil.setTransform() could fix this, but I'm unsure of exactly how. We got rid of 2D transforms a while ago, and Epiphany says it supports 3D transforms anyway :-|

@marcinbugaj
Copy link
Author

marcinbugaj commented Jan 16, 2024

Is there any workaround for this? Or perhaps can it be fixed in Leaflet?

@IvanSanchez
Copy link
Member

IvanSanchez commented Jan 16, 2024

There's no quick workaround. There should be some way of handling this on the Leaflet side, but right now I think this can be considered as an upstream bug (i.e. a bug in WebKitGTK).

I wonder if this can be reproduced somehow by setting translate3D transforms manually on a couple of <div>s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug compatibility Cross-browser/device/environment compatibility
Projects
None yet
Development

No branches or pull requests

2 participants