title: JavaFX ListView with touch events for scrolling up and down
body: <p>I would like to implement a scrollable ListView with gestures, just like in mobiles and tablets, to scroll up and down my list with a finger. But my current list selects an item as soon as I click down on the list. How can I achieve this? I couldn't find any example at the Oracle tutorials.</p>
  
  <pre><code>private ObservableList&lt;Document&gt; items = FXCollections.observableArrayList();
  @FXML ListView&lt;Document&gt; listView;
  
  {
      ...
  
      listView.setItems(items);
      listView.getStylesheets().add("style/listview.css");
      listView.setStyle("-fx-background-insets: 0 ;"); // remove 1px border of listview container
  
      listView.setCellFactory(new Callback&lt;ListView&lt;Document&gt;, ListCell&lt;Document&gt;&gt;() {
          @Override
          public ListCell&lt;Document&gt; call(ListView&lt;Document&gt; listView) {
              return new DocumentArrayAdapter();
          }
      });  
  
      ...
  }
  
  public void loadListView(List&lt;Document&gt; ldoc){
      if (!ldoc.isEmpty()){
          items.addAll(ldoc);
      }
  }
  </code></pre>