i have a view which contains a grid of ToggleButto...
# doodle
m
i have a view which contains a grid of ToggleButtons. the view is modified with
Resizer(moveable=true)
it works, but not if i start the drag in one of the child
ToggleButtons
. what's the easiest way to make it possible to start a drag of the view from anywhere within the view?
n
this is expected b/c the ToggleButtons will consume the pointer events if they have a
CommonButtonBehavior
(or its descendants) installed. this is the behavior you usually want w/ buttons. this means
Resizer
won't receive the pointer events since it listens to the "bubbling" phase for pointer/pointer-motion events. that is, it only gets these events after the View's children have processed them (and chosen not to consume them). this is actually something i'll be giving you more control over in 0.10.1 (coming in the next few days).
Resizer
will have a new property that lets you decide if you want to handle events during the "sinking" phase instead, which would let it get the event before the View's children do. setting that will let you move the View regardless of what the children do.
👍 1
this change is in the latest snapshot release 0.10.1-SNAPSHOT.
m
thanks. i will check it out