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

Light version request #87

Open
Sauvage9 opened this issue Apr 13, 2017 · 3 comments
Open

Light version request #87

Sauvage9 opened this issue Apr 13, 2017 · 3 comments

Comments

@Sauvage9
Copy link

I'm looking for a lightweight true javascript sort lib for lists.
Slip is a wonderful and efficient piece of code, but I would like a stripped version:

  • only reorder functionality (no aria, swiping etc.)
  • better way to call Slip: Slip(container_node,{options})

I already made an attempt to strip the code but I'm guessing the actual author will do a better job knowing all dependencies...

@myleftshoe
Copy link

I created a 'lightweight' (no aria or swiping) for use in a react project if yr still interested:

[Source] [React app demo]

You can just pull out the slip.js and slip.css files from the repo. Don't think it will work outside react context though as it uses some es6 features.

@carter-thaxton
Copy link
Collaborator

I’m curious why it was necessary to strip down this library. The swiping functionality isn’t very large. If you have a contribution to slip.js that would help use it in a React context, I think that would be a useful PR.

As it stands, I thank you for the demo, but it would not really be usable if it doesn’t support the existing functionality and backward compatibility.

@myleftshoe
Copy link

I tried a number of react sortable libraries - react-beautiful-dnd, react-smooth-dnd, react-sortable-hoc, react-spring. This was this only library that worked without "jank" or scrolling issues while dragging, and at very close to 60fps on a low end Windows mobile running Edge ( pretty niche user base).

I'm not the greatest js/front end developer in the work so I stripped out things I didn't need in order to understand how it worked. I tweaked it a bit and since it's for my own use, didn't bother putting it back in.

One tweak I did might be useful for this repo - animate smoothly into position on drop. You can see it in the demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants