Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with coordinates #4

Open
Guillermo-Feijoo opened this issue Oct 26, 2020 · 0 comments
Open

Problem with coordinates #4

Guillermo-Feijoo opened this issue Oct 26, 2020 · 0 comments

Comments

@Guillermo-Feijoo
Copy link

Guillermo-Feijoo commented Oct 26, 2020

Testing the Triangle example (https://github.com/mxmzb/react-native-gesture-detector/blob/master/example/src/Screen/Triangle.js) I have seen that when changing the coordinates of it to test the same example but with different coordinates, I have not managed to make it work (the capture of the gestures stops working and the progress is not displayed properly).

I attach the code of the example with my changes on the code that I made by my own ( I have only changed the y-axis coordinates )

dibujoMain.zip

The Coordinates that i used instead of the default ones.

const gestures = {
Triangle: [
{ x: 0, y: -200 },
{ x: 10, y: -180 },
{ x: 20, y: -160 },
{ x: 30, y: -140 },
{ x: 40, y: -120 },
{ x: 50, y: -100 },
{ x: 60, y: -80 },
{ x: 70, y: -60 },
{ x: 80, y: -40 },
{ x: 60, y: -40 },
{ x: 40, y: -40 },
{ x: 20, y: -40 },
{ x: 0, y: -40 },
{ x: -20, y: -40 },
{ x: -40, y: -40 },
{ x: -60, y: -40 },
{ x: -80, y: -40 },
{ x: -70, y: -60 },
{ x: -60, y: -80 },
{ x: -50, y: -100 },
{ x: -40, y: -120 },
{ x: -30, y: -140 },
{ x: -20, y: -160 },
{ x: -10, y: -180 },
{ x: 0, y: -200 },
],
};

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant