Comments (8)
Thanks! I'm really glad this worked out.
It seems that on iPhone 7 a view listening to touch events with panResponder
prevents the children from capturing touch events if
onMoveShouldSetPanResponder
and
onMoveShouldSetPanResponderCapture
are true - but not on other iPhones.
I have absolutely no idea why this happens, but it could be fixed in this case because we don't need to capture both press and drag events at the same time.
So the fix was like, "don't capture drag events before the user has initiated the drag with a long-press, and don't capture press events while dragging"
from react-native-sortable-grid.
Sorry to hear that. It should work on an actual device just as well.
Have you tried running it with "JS Dev Mode"-option turned off and without remote JS debugging?
from react-native-sortable-grid.
@ollija Yes, I've tried running it in xcode Release build (Profiling mode), if that's what you mean.
from react-native-sortable-grid.
I tried running the examples of the library on an actual device (Iphone 6 IOS 10) with release build and they worked as expected. Unfortunately I don't have an Iphone 7 to test this with.
Is it possible for you to provide example code that produces this?
from react-native-sortable-grid.
@ollija The example code https://github.com/ollija/react-native-sortable-grid/blob/master/example/deletionExample.js is not working on my iPhone 7 (but works in simulator).
Here is a gif of me trying to initiate the drag, nothing happens 😔 :
from react-native-sortable-grid.
Could you try with the latest version I just pushed and tell me if it worked?
from react-native-sortable-grid.
@ollija (before you pushed) I just tried it with my iPhone 5. It works perfectly with iPhone 5!
I will try out your new version on iPhone 7 now.
from react-native-sortable-grid.
@ollija After your latest push, it is now working beautifully on my iPhone 7! Thank you so much for your badass, one-of-a-kind library!
Out of curiosity, what was the issue? Is there something iPhone 7 does differently with touch handlers than previous versions?
from react-native-sortable-grid.
Related Issues (20)
- Drag and Drop fails and the Grid collapses. HOT 3
- Drag icons in a long ScrollView with autoscroll HOT 2
- Still supported? HOT 3
- onDragStart not working with delete functionality?
- How to make draggable item clickable?
- want some inactive items not to be sorted, inactive property is not working HOT 5
- Can i Add outside item to items inside grid? HOT 1
- Android performance is sluggish and unusable HOT 1
- different quantities of items in different rows HOT 9
- how to slide item to left or right and delete
- Is there an example where item values change on reorder? HOT 1
- Add an item HOT 1
- inactive props doesn't work for me HOT 3
- how to set inactive = false. to it's child HOT 5
- Deprecated Lifecycle Method .....Warning: componentWillReceiveProps has been renamed... HOT 1
- scroll grid not work
- When will the latest commit be merged into master?
- restrict to one movement
- Not working with TouchableOpacity/Pressable
- Customize number of items in each column/row
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-sortable-grid.