<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SketchEditor freezes MapView when using touch screen in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230563#M2631</link>
    <description>&lt;P&gt;Okay, I've been experimenting with things and found something interesting!&lt;/P&gt;&lt;P&gt;The SketchEditor classes have not altered for a very long time, but there is a definite regression in touch as you've identified which I have narrowed down to the version of JavaFX.&amp;nbsp; Basically touch with SketchEditor works fine if you switch to using JavaFX11.0.2, but I'm seeing the same issue as you with using JavaFX 17.&lt;/P&gt;&lt;P&gt;I'll have to dig into this some more, but it looks like there is a behaviour change after JavaFX11.&amp;nbsp; The issue still happens even in the early adopter version of JavaFX20!&lt;/P&gt;&lt;P&gt;I'll have to look at this some more, but the workaround for the moment is to build your app in JavaFX 11.&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 18:21:53 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2022-11-10T18:21:53Z</dc:date>
    <item>
      <title>SketchEditor freezes MapView when using touch screen</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1229800#M2629</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi, I am having issues with SketchEditor&amp;nbsp;&lt;/SPAN&gt;working on my touch screen. Using the mouse works fine.&amp;nbsp; When using touch, I can see the&lt;SPAN&gt;&amp;nbsp;editor is started however the MapView becomes unresponsive. All other aspects within the application work fine via touch ie the Mil Symbols etc.&amp;nbsp; I followed the example as per the developers guide for Java. I am using 100.15.1 Openjdk17 and OpenJfx17&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example method:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;@FXML&lt;BR /&gt;private void handleRectangleButtonClicked() {&lt;BR /&gt;graphicsOverlay.clearSelection();&lt;BR /&gt;sketchEditor.start(SketchCreationMode.RECTANGLE);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;I have tried with no success.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Removing the FXML action event and adding an OnAction to the button&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;pointButton.setOnAction(new EventHandler&amp;lt;ActionEvent&amp;gt;() {&lt;BR /&gt;@Override&lt;BR /&gt;public void handle(ActionEvent event) {&lt;BR /&gt;graphicsOverlay.clearSelection();&lt;BR /&gt;sketchEditor.stop(); //even added a stop to see if helps&amp;nbsp;&lt;BR /&gt;sketchEditor.start(SketchCreationMode.POINT);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;add the following in case it was a Javafx thread issue:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;pointButton.setOnAction(new EventHandler&amp;lt;ActionEvent&amp;gt;() {&lt;BR /&gt;@Override&lt;BR /&gt;public void handle(ActionEvent event) {&lt;BR /&gt;&amp;nbsp;Platform.runLater(() -&amp;gt; {&lt;/P&gt;&lt;P&gt;graphicsOverlay.clearSelection();&lt;/P&gt;&lt;P&gt;sketchEditor.stop(); //even added a stop to see if helps&amp;nbsp;&lt;BR /&gt;sketchEditor.start(SketchCreationMode.POINT);&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas or help as to how to resolve or even try welcome&lt;/P&gt;&lt;P&gt;In all cases using the mouse continued to work but not when using touch on my touch screen.&lt;/P&gt;&lt;P&gt;I apologies but I also posted this issue here&amp;nbsp;&lt;A href="https://community.esri.com/t5/developers-questions/javafx-sketcheditor-touchscreen-issue/m-p/1225564#M6389" target="_blank"&gt;Javafx SketchEditor TouchScreen Issue - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 04:34:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1229800#M2629</guid>
      <dc:creator>rod182211</dc:creator>
      <dc:date>2022-11-09T04:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor freezes MapView when using touch screen</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230479#M2630</link>
      <description>&lt;P&gt;Hi Rod,&lt;/P&gt;&lt;P&gt;I'm going to set up a touch screen to see what is happening here.&amp;nbsp; I'll report back shortly.&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 16:07:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230479#M2630</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2022-11-10T16:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor freezes MapView when using touch screen</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230563#M2631</link>
      <description>&lt;P&gt;Okay, I've been experimenting with things and found something interesting!&lt;/P&gt;&lt;P&gt;The SketchEditor classes have not altered for a very long time, but there is a definite regression in touch as you've identified which I have narrowed down to the version of JavaFX.&amp;nbsp; Basically touch with SketchEditor works fine if you switch to using JavaFX11.0.2, but I'm seeing the same issue as you with using JavaFX 17.&lt;/P&gt;&lt;P&gt;I'll have to dig into this some more, but it looks like there is a behaviour change after JavaFX11.&amp;nbsp; The issue still happens even in the early adopter version of JavaFX20!&lt;/P&gt;&lt;P&gt;I'll have to look at this some more, but the workaround for the moment is to build your app in JavaFX 11.&lt;/P&gt;&lt;P&gt;Does this help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:21:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230563#M2631</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2022-11-10T18:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor freezes MapView when using touch screen</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230724#M2632</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 21:44:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230724#M2632</guid>
      <dc:creator>rod182211</dc:creator>
      <dc:date>2022-11-10T21:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor freezes MapView when using touch screen</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230725#M2633</link>
      <description>&lt;P&gt;Yes I can roll back at the moment. Thanks for the update&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 21:45:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230725#M2633</guid>
      <dc:creator>rod182211</dc:creator>
      <dc:date>2022-11-10T21:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor freezes MapView when using touch screen</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230980#M2634</link>
      <description>&lt;P&gt;Just FYI I found it will work up to&amp;nbsp;&lt;SPAN&gt;JavaFX16&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 20:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1230980#M2634</guid>
      <dc:creator>rod182211</dc:creator>
      <dc:date>2022-11-11T20:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor freezes MapView when using touch screen</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1235020#M2635</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/550174"&gt;@rod182211&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to give you an update on this.&amp;nbsp; As you say it worked fine until JavaFX16 and we've seen the same too having looked at this some more.&lt;/P&gt;&lt;P&gt;There is a nice explanation &lt;A href="https://stackoverflow.com/questions/69203599/javafx-no-touchevents" target="_self"&gt;here&lt;/A&gt; which sums up the issue which is basically a change in how touch works.&lt;/P&gt;&lt;P&gt;We've got some code in test at the moment where we've rewired some of the events for the SketchEditor to make it function again at JavaFX17.&amp;nbsp; We need to be mindful that JavaFX11 us only in support until September 2023 so I'm keen this is fixed.&amp;nbsp; There will be subtle changes to how the touch interaction works, but the important thing is it works again!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the next month we will be releasing 200.0.0 of Runtime for Java (it will be called ArcGIS Maps SDK for Java when released), so if all goes well with the testing of this fix we should be able to include it in this release.&lt;/P&gt;&lt;P&gt;The longer term plan is to deprecate the SketchEditor as we are working on a much improved editor for geometry which you will see next year.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Fri, 25 Nov 2022 13:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1235020#M2635</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2022-11-25T13:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: SketchEditor freezes MapView when using touch screen</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1239069#M2642</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/550174"&gt;@rod182211&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've just made a release candidate cut of 200.0.0 of our next release and I can confirm that the fix to workaround the change in touch behaviour introduced in JavaFX 17 is included.&lt;/P&gt;&lt;P&gt;At the earliest this will be released the middle of next week...&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 10:20:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/sketcheditor-freezes-mapview-when-using-touch/m-p/1239069#M2642</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2022-12-08T10:20:30Z</dc:date>
    </item>
  </channel>
</rss>

