SortableJS / Sortable

Reorderable drag-and-drop lists for modern browsers and touch devices. No jQuery or framework required.
https://sortablejs.github.io/Sortable/
MIT License
29.29k stars 3.69k forks source link

Drag only in vertical direction #1600

Open Guustaaf opened 5 years ago

Guustaaf commented 5 years ago

Problem:

I am using a single stack of sortable text input fields that only need to be sorted vertically. Trying to select text by dragging horizontally starts dragging an item. Is there a way to disable horizontal dragging? Thanks!

JSBin/JSFiddle demonstrating the problem:


Before you create an issue, check it:

  1. Try master-branch, perhaps the problem has been solved;
  2. Use the search, maybe we already have an answer;
  3. If not found, create an example on jsbin.com (draft) and describe the problem.

Bindings:

Nice-PLQ commented 5 years ago

I also need this feature.

owen-m1 commented 5 years ago

Currently not possible. For the scenario described, try using the handle option.

Guustaaf commented 5 years ago

Thanks!