react-native-gesture-detector icon indicating copy to clipboard operation
react-native-gesture-detector copied to clipboard

Problem with coordinates

Open Guillermo-Feijoo opened this issue 5 years ago • 0 comments

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 }, ], };

.

Guillermo-Feijoo avatar Oct 26 '20 20:10 Guillermo-Feijoo