Is there a correct way to solve the problem with event propagation between two sibling panes?
For example we have StackPane with 2 panes inside.
StackPane p = new StackPane();
Region p1 = new Region();
Region p2 = new Region();
p.getChildren().addAll(p1, p2);
p2 in this example capture mouse events and p1 can't react on it even if event is not consumed.
Is there a correct way to propagate event to p1 if it not consumed by p2?
setMouseTransparent not solve my problem because I need that both children elements react on mouse.
Thanks for advise.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…