Thread
#compose
    j

    Jakub Ledwon

    1 year ago
    Hi, I implemented a simple NumberPicker widget which works by using
    draggable
    . Now I want to use it inside a
    LazyColumn
    , but when I'm picking the number, column's content is scrolling as well. What is the easiest way to block scrolling for parent in this situation? Should I use
    nestedScroll
    modifier or something else?
    Vsevolod Ganin

    Vsevolod Ganin

    1 year ago
    Strange. I have my own
    NumberPicker
    implementation, it also uses
    draggable
    and resides as item of
    LazyColumn
    , but scrolling it doesn’t scroll
    LazyColumn
    in any way
    j

    Jakub Ledwon

    1 year ago
    That is weird, may I ask which properties from
    dragabble
    did you use for your
    NumberPicker
    may be that can cause some troubles?
    Vsevolod Ganin

    Vsevolod Ganin

    1 year ago
    Yeah, I have my implementation public on gist, just need to update it to alpha12. Wait a sec
    (It uses some of my internal garbage but it should be easy to rip it off to get the idea)
    j

    Jakub Ledwon

    1 year ago
    I've tried your
    NumberPicker
    , although I've modified it for compose alpha11, because I use koin and it struggles with 12, and unfortunately it is scrolling column as well while flinging 😕 .
    I've found a solution, I don't know if this is a proper one, but setting
    startDragImmediately
    to true worked like a charm for me