sourcetoad / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
4 stars 3 forks source link

scroll when draw in scrollview on iOS #51

Closed dioi2000 closed 10 months ago

dioi2000 commented 11 months ago

https://github.com/sourcetoad/react-native-sketch-canvas/assets/33106641/19f82ece-1fe7-4c06-82b7-da2f13d5e022

android is ok but on iOS it works like this video

iBotPeaches commented 11 months ago

@ian-wd does this video remind you of that same issue we had? I can't remember if that was library fault or how we laid component onto page.

iBotPeaches commented 11 months ago

@dioi2000 - I found this as an older issue in the original package: https://github.com/terrylinla/react-native-sketch-canvas/issues/64

To be honest, we fixed it by just locking the child container using the startStroke and endStroke events that this library offers.

Either way if this works like this on Android - I'll do some research if we can prevent those events going further.

dioi2000 commented 10 months ago

@iBotPeaches you are my life saver!

iBotPeaches commented 10 months ago

@dioi2000 - I could not find a way to resolve this natively in the library. You have to continue to use the events to lock scroll when interacting with component.