Giter Site home page Giter Site logo

Comments (5)

kmagiera avatar kmagiera commented on May 26, 2024 3

Seems I finally figured out what was wrong with longpress: 86ef72a#diff-b16682bd3eb1da07c1f0a38594edb354R37

Closing this

from react-native-gesture-handler.

kmagiera avatar kmagiera commented on May 26, 2024

I think that's actually an issue with simulator only. I think that long press recognizer under the hood works in response to touch event stream that may be paused when you hold your mouse on the button in simulator. Whereas with the real devices there are always some subtle differences even if you try to hold the finger still so new events would arrive. I noticed it some time ago. You don't actually need to lift the finger, it is sufficient to hold it for a while and then slightly move and the dialog will pop up. I also tested that it works flawlessly on device. On top of that I verified that it's UILongPressGestureRecognizer not calling action handler until there is some (even unnoticeable small) movement

from react-native-gesture-handler.

kmagiera avatar kmagiera commented on May 26, 2024

This may be related: http://markmail.org/message/ij2y4qmax6squ5dd

from react-native-gesture-handler.

kmagiera avatar kmagiera commented on May 26, 2024

It also works fine if you use a touchpad instead of a mouse.

@brentvatne do you hit this problem on device or simulator?

from react-native-gesture-handler.

kmagiera avatar kmagiera commented on May 26, 2024

@brentvatne I wonder is the scroll + cancel event issue was maybe related to this bug report. When you have time can you check if you still encounter this after the fix has landed?

from react-native-gesture-handler.

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.