From: megacz Date: Fri, 30 Jan 2004 06:50:49 +0000 (+0000) Subject: 2002/10/30 22:01:04 X-Git-Tag: RC3~1517 X-Git-Url: http://git.megacz.com/?p=org.ibex.core.git;a=commitdiff_plain;h=65e5235c58672a2c711c4acb0a6af44429287234 2002/10/30 22:01:04 darcs-hash:20040130065049-2ba56-d11831712682ea59dfa360d1ef423f0dc4526aec.gz --- 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); }};