Sortable: Axis (x,y) wanted

Created on 7 Feb 2016  Â·  6Comments  Â·  Source: SortableJS/Sortable

Hi, great plugin!
It will be great if there will be an axis option (X, Y)

Most helpful comment

@ideaweb That was exactly my scenario (2/3 of our apps sortables benefited from being native and snappy, but one needed to be limited to the y axis), so I forked it. It's just a tiny change (https://github.com/friday/Sortable/commit/ebfa4b266259d46b87be82854354b1cfd8a994cc). The maintainer only wants to support the feature set native dnd can do it seems.

All 6 comments

Native drag'n'drop — does not support this feature.

Seriously? I'm off to use jQuery sortable.

Cannot understand why this issue will not be considered. There are lot of cases why "axis" makes sense. My project mainly use "standard" drag'n drop, but i have a single case why its needed. Do you mean is not possible with "forceFallback: false"? Any chance to make it available in fallback mode or any hint how i can force that e.g. transformX is not used?

@ideaweb That was exactly my scenario (2/3 of our apps sortables benefited from being native and snappy, but one needed to be limited to the y axis), so I forked it. It's just a tiny change (https://github.com/friday/Sortable/commit/ebfa4b266259d46b87be82854354b1cfd8a994cc). The maintainer only wants to support the feature set native dnd can do it seems.

@friday that gets you your first star 😉

@friday Thx a million... now i can reorder in my web app the tabs on x-axis like Google Chrome, Safari etc. I know that browsers have still extra feature "tab to window" which is "native" but for just reordering its still on x-axis and not native. I know for reordering tabs is not really needed and would work with "native" fine, but for usability i think to let it it on x-axis its much better.

Was this page helpful?
0 / 5 - 0 ratings