Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8278150

WebView: Dragging related issue.

XMLWordPrintable

    • web
    • x86_64
    • windows_10
    • Verified

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10
      Java 11
      JavaFx 17.0.1

      A DESCRIPTION OF THE PROBLEM :
      When running the provided executable test case using JavaFX 16 one can properly drag the map around.

      When running it using JavaFx 17.0.1 dragging of the map doesn't work.



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just run the provided example with JavaFX 17.0.1

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The map should be draggable just like it is when running this executable test case using JavaFX 16. Instead nothing happens.
      ACTUAL -
      When one tries to drag the map nothing happens.

      ---------- BEGIN SOURCE ----------
      public class WebViewLeafletSCSSE extends Application {

          @Override
          public void start(Stage stage) {
              WebView webView = new WebView();
              WebEngine webEngine = webView.getEngine();
              webEngine.load("https://leaflet-extras.github.io/leaflet-providers/preview/");


              var scene = new Scene(new StackPane(webView), 640, 480);
              stage.setScene(scene);
              stage.show();
          }

          public static void main(String[] args) {
              launch();
          }

      }
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      No workaround.

      FREQUENCY : always


            pnarayanaswa Praveen Narayanaswamy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: