Giter Club home page Giter Club logo

Comments (4)

Muthaias avatar Muthaias commented on May 30, 2024

I've spent some time looking into the implementation and as far as I can see the state handling is broken.

There are a number of things with both useSprings and useGesture that don't play well with the current set up when updating props.

I think it would be wise and take a step back make sure the hooks are utilized correctly. (Or find another library which better supports our use case.)

from swipeforfuture.com.

Muthaias avatar Muthaias commented on May 30, 2024

But in reality these are two completely different issues. I'll create another issue regarding the state of the cards and state/prop problems. I'll try to fix it during the day.

Moved the state issue suggestion to #33

from swipeforfuture.com.

Muthaias avatar Muthaias commented on May 30, 2024

This is a great point!

If I remember correctly. Tinder has both buttons and swipe functionality in order to control the selection process. I like having both since swiping is not optimal in all cases. (Also maybe adding buttons could improve accessibility)

On your number idea 2: I think we could either add visual activation zones in the background or we could tint the cards when they reach an activated distance from the center.

On your idea number 1: What do you think about having only one card being interactive at a time? I think we could improve the state by completely removing the interactivity for the cards which are not currently active.

from swipeforfuture.com.

Greenheart avatar Greenheart commented on May 30, 2024

This is outdated. CLosing.

from swipeforfuture.com.

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.