Does anyone know of a way to stop a FireMonkey scroll box from scrolling during dragging? I have a control inside of a TVertScrollBox which I need to handle the mouse/finger events rather than its parent scrollbox. Everything I’ve tried hasn’t worked and the control moves around in the scrollbox while interacting with it which is really annoying UX.

Does anyone know of a way to stop a FireMonkey scroll box from scrolling during dragging? I have a control inside of a TVertScrollBox which I need to handle the mouse/finger events rather than its parent scrollbox. Everything I’ve tried hasn’t worked and the control moves around in the scrollbox while interacting with it which is really annoying UX.
I guess I need to stop the events propagating to the parent once handled but can’t see a way to do this.

Has anyone managed to do this?

Thanks!

Comments

  1. Thanks Juan C. Cilleruelo, unfortunately this also disables all internal controls including the one I need to interact with inside it.

    ReplyDelete
  2. Juan C. Cilleruelo the layout idea is an interesting workaround, so I’ll give that a try. Thanks for your help!

    ReplyDelete
  3. Put the control you want to maintain enabled inside the Layout, instead of behind it.

    This avoids that the HitTest of the Layout affects it, and the functionality of the group of controls remains.

    ReplyDelete

Post a Comment