Right mouse button doesn't work on the Scene after i've added mouse listener for middle mouse button and i cant rotate the scene using right mouse button now. Left click still works and i can move on the scene.
sceneView.setInteractionListener(new DefaultInteractionListener(sceneView)
{
public void onMousePressed(javafx.scene.input.MouseEvent e)
{
if(e.getButton() == MouseButton.MIDDLE)
{
javafx.geometry.Point2D screenPoint = new javafx.geometry.Point2D(Math.round(e.getX()), Math.round(e.getY()));
com.esri.arcgisruntime.geometry.Point surfacePoint = sceneView.screenToBaseSurface(screenPoint);
JOptionPane.showMessageDialog(null, "Elevation: "+surfacePoint.getZ()+" Longitude: "+surfacePoint.getX()+" Latitude: "+surfacePoint.getY());
}
}
});