Coder Social home page Coder Social logo

Comments (8)

Tawpie avatar Tawpie commented on August 16, 2024 1

BAM! Works great. Many thanks.

from react-rating.

dreyescat avatar dreyescat commented on August 16, 2024

Hi @Tawpie!

I think I see what you mean... So I assume that the rating pseudo-hovering on touch devices should be disabled in this case, right? Or you want both behaviors to coexist (hovering and scrolling)? For the former situation I think we could find an easy solution in combination with the quiet mode. For the latter, well, not sure yet πŸ˜…

from react-rating.

Tawpie avatar Tawpie commented on August 16, 2024

If disabling hovering does the trick that's outstanding! I wouldn't have thought of combining it with quiet mode thoughβ€”perhaps the prop's "whether to animate hovering" description could be updated. If quiet mode is the cleanest I'm all for that.

from react-rating.

dreyescat avatar dreyescat commented on August 16, 2024

Release v2.0.6 should solve this issue, or at least, provide a reasonable alternative.

My first idea was to just ignore hovering on touch devices. However there already was an example on hovering over a quiet rating. It make sense to me but I don't want to break anything. I don't know if someone is relying on this behavior πŸ˜…. So, after some thought, I just decided to try to differentiate between click and swipe on touch devices. I kind of removed the swipe selection on quiet mode while keeping it on normal mode without removing the onHover event on both (as it is working now).

Hope it is enough or at least it does the trick for you. Let me know otherwise and we can try to find another way.

from react-rating.

Tawpie avatar Tawpie commented on August 16, 2024

Thank you! I'll give it a whirl. Just verifying, I need to have the component in quiet mode?

from react-rating.

dreyescat avatar dreyescat commented on August 16, 2024

Exactly πŸ‘

The quiet mode should avoid triggering the click event on a swipe gesture.

from react-rating.

Tawpie avatar Tawpie commented on August 16, 2024

v2.0.6, with component's quiet prop set to {true} prevents selection of a rating when the user moves the touch point. Verified on iOS 13.5.1 (iPhone 6S+) and Android 10 system update 2020-05-01 (pixel 1).

from react-rating.

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.