Gesture response outside of stack boundary not recieved

后端 未结 1 785
逝去的感伤
逝去的感伤 2021-01-12 08:49

I am trying to implement a re-sizable widget with handles at the corners. The corner handles will be overflow the Stack by half of its width/height.

1条回答
  •  独厮守ぢ
    2021-01-12 09:06

    This is the desired behavior. If widgets could catch pointer events outside of their boundaries; it would be easy to fall into a situation where it's impossible to determine which widget is targeted.

    In short, don't use overflow. Refactor your layout to make sure it's well contained inside the bounds of its parent.

    0 讨论(0)
提交回复
热议问题