Hey, is it possible to configure a `WindowDraggabl...
# compose-desktop
j
Hey, is it possible to configure a
WindowDraggableArea
in a way that it does not override any possible interaction in its area? For example, if I define a
WindowDraggableArea
and put a
Button
inside of it, it is impossible to interact with the button (the draggable area seems to always be "on top").
j
It sounds like you're saying that
WindowDragArea
is consuming the events too early for your use case (on the way down instead of on the way up); does that correctly restate your question? If you look at the implementation of
WindowDraggableArea
, it is basically just a box with a
dragGestureFilter
. It should be easy to write your own version of
WindowDragArea
that uses your own
dragGestureFilter
which has an "if" statement to check the
PointerEventPass
before consuming the event. cc @Roman Sedaikin [JB] for
WindowDragArea
expertise.
j
I "fixed" this by moving the elements out of the
WindowDraggableArea
content body. The only downside is that I now have to manually set the size of
WindowDraggableArea
.