bcx-aurelia-reorderable-repeat icon indicating copy to clipboard operation
bcx-aurelia-reorderable-repeat copied to clipboard

option to scroll vertically only

Open BooMajka opened this issue 3 years ago • 1 comments

Is there an option in aurelia-reorderable that locks to vertical movement only, just like oa-sortable="axis: 'y'" ?

BooMajka avatar Dec 29 '21 16:12 BooMajka

Thx.

I agree it's a good idea to limit the "preview" image movement on the axis of the reordering, that's what native reordering UI does anyway. I would like to offer this as the default behaviour without any option to change.

The only issue I can image is that the UI supports wrapped flex layout, so the items can span more than one column (or row), the preview image would need to snap to closest column under the mouse cursor.

It probably needs to be implemented at lower level, the bcx-aurelia-dnd, I will let you know when it's ready.

If you have more thoughts on this topic, I would love to hear. Cheers!

3cp avatar Dec 31 '21 01:12 3cp