Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option to scroll vertically only #24

Open
BooMajka opened this issue Dec 29, 2021 · 1 comment
Open

option to scroll vertically only #24

BooMajka opened this issue Dec 29, 2021 · 1 comment
Assignees

Comments

@BooMajka
Copy link

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

@3cp
Copy link
Member

3cp commented Dec 31, 2021

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 3cp self-assigned this Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants