Giter Club home page Giter Club logo

Comments (3)

myleftshoe avatar myleftshoe commented on June 2, 2024

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.

from slip.

carter-thaxton avatar carter-thaxton commented on June 2, 2024

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.

from slip.

myleftshoe avatar myleftshoe commented on June 2, 2024

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.

from slip.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.