JavaFX Webview - dragging problem - Leaflet issue?
See original GitHub issueI had a meeting with a developer, which used JavaFX and Webview to display a Leaflet map.
After upgrading to JDK1.8.0_291
(or greater then 291) the map dragging doesn’t work anymore.
First I thought it is only a Java problem but it looks like the mouse
-events are correctly passed to the html.
We found out
- that dragging the map works if we use Leaflet 0.7.7
- if we hold down on the zoom control button and then move the pressed mouse to the map, and then release it -> the map is moving / dragging until we click again
Have we some JavaFX experts here? I have following questions:
- Can you confirm this issue?
- Is it possible to debug the Javascript in the WebView?
- Is this a JavaFX problem or is this a problem of Leaflet?
I suggest to let this Issue open until 2022 and if no one can confirm this we close it.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17 (8 by maintainers)
Top Results From Across the Web
Leaflet does not work in WebEngine after JavaFX 17
This makes the Leaftlet map to move properly while being dragged in the Java FX 17 WebView - but please consider this more...
Read more >[JDK-8278150] WebView: Dragging related issue.
When running it using JavaFx 17.0.1 dragging of the map doesn't work. ... The map should be draggable just like it is when...
Read more >Issues with Leaflet and JavaFX Webview - Google Groups
As I drag or zoom on the map, the Circles and Polygons are not fixed, but moving in somewhat random directions. This behavior...
Read more >Leaflet Does Not Work In Webengine After Javafx 17 - ADocLib
I am using JavaFX Webview with Leaflet library to render OSM tiles.I am running into issues with Circles and Polygons Marker and with...
Read more >Creating a JavaFX World Clock from Scratch (Part 5) - Foojay
In Part 5 of the series, we will be looking at JavaFX's WebView API to ... locally and you'll see the map rendered...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I did a quick check.
The good news is that with the latest master the issue is gone! 😃
Side question: Are there any estimations of when new Leaflet version (based on the latest master) will be out?
nice catch! I think this should be fixed in JavaFX