From 65e5235c58672a2c711c4acb0a6af44429287234 Mon Sep 17 00:00:00 2001 From: megacz Date: Fri, 30 Jan 2004 06:50:49 +0000 Subject: [PATCH] 2002/10/30 22:01:04 darcs-hash:20040130065049-2ba56-d11831712682ea59dfa360d1ef423f0dc4526aec.gz --- CHANGES | 2 ++ src/org/xwt/SpecialBoxProperty.java | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 2f3eecd..1a1d746 100644 --- a/CHANGES +++ b/CHANGES @@ -443,3 +443,5 @@ 15-Oct megacz Arguments.java, Trap.java: arguments.trapname +30-Oct megacz SpecialBoxProperty.java: fixed mouse event propagation + diff --git a/src/org/xwt/SpecialBoxProperty.java b/src/org/xwt/SpecialBoxProperty.java index 7488199..095cc6f 100644 --- a/src/org/xwt/SpecialBoxProperty.java +++ b/src/org/xwt/SpecialBoxProperty.java @@ -480,11 +480,13 @@ class SpecialBoxProperty { SpecialBoxProperty mouseEventHandler = new SpecialBoxProperty() { public void put(String name, Box b, Object value) { if (b.surface == null) return; - for(Box c = b.prevSibling(); c != null; c = c.prevSibling()) - if (c.inside(c.surface.mousex, c.surface.mousey)) { - c.put(name, c, value); + for(Box c = b.prevSibling(); c != null; c = c.prevSibling()) { + Box siblingChild = c.whoIs(c.surface.mousex, c.surface.mousey); + if (siblingChild != null) { + siblingChild.put(name, c, value); return; } + } if (b.getParent() != null) b.getParent().put(name, b.getParent(), value); }}; -- 1.7.10.4