sketchbook-compose icon indicating copy to clipboard operation
sketchbook-compose copied to clipboard

Sketchbook not working in ModalBottomSheetLayout

Open drdla49 opened this issue 3 years ago • 2 comments

I use sketchbook version 1.0.4. If I add a sketchbook to ModalBottomSheetLayout only drawing that work are horizontal lines. ModalBottomSheetLayout steel events and sketchbook don't draw anything if I draw vertically.

drdla49 avatar Oct 10 '22 11:10 drdla49

Hi @drdla49, Sketchbook composable function supports onEventListener and you can track the MotionEvent. I'm wondering if you can prevent scrolling behaviors of ModalBottomSheetLayout while touching down/move.

skydoves avatar Oct 11 '22 05:10 skydoves

Stopping ModalBottomSheetLayout from moving/sliding/dragging is easy, but it still steals all the vertical events and therefore prevents from drawing properly.

michallepicek avatar Nov 04 '22 14:11 michallepicek