Code Monkey home page Code Monkey logo

Comments (4)

Kureev avatar Kureev commented on July 3, 2024

I'm sorry, not sure I got what you mean by this. Why toleranceX doesn't work for you? Very far away from the screen?

from react-native-side-menu.

marcshilling avatar marcshilling commented on July 3, 2024

@Kureev I'll try to be more clear. toleranceX seems to only affect how FAR you have to drag before it triggers the menu, but fails to take into account the origin of the drag. It seems weird to me to have a left side menu that you can drag open with a touch that originates on the right side of the screen. It would be nice to specify that only touches that start on the left can drag open the menu.

Consider a left side menu. I'm imagining a way to set this hypothetical edgeTolerance to 40 so that only touches that start within the first 40 pixels from the left side of the screen will be able to trigger the menu. If I originate a touch at x=50 and then try to drag to the right, it would have no effect since I specified it must be within 40.

from react-native-side-menu.

felixakiragreen avatar felixakiragreen commented on July 3, 2024

👍

See: https://github.com/rt2zz/react-native-drawer the prop panOpenMask

from react-native-side-menu.

Kureev avatar Kureev commented on July 3, 2024

@marcshilling I've took a look on it and I can assert that it respects the point when you started your drag. Sorry, that it took more than 1 month for me to check, but if you update the lib to one of the latest versions, you would be able to experience this 👍

from react-native-side-menu.

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.