projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f55f019
)
2002/10/30 22:01:04
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:50:49 +0000
(06:50 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 06:50:49 +0000
(06:50 +0000)
darcs-hash:
20040130065049
-2ba56-
d11831712682ea59dfa360d1ef423f0dc4526aec
.gz
CHANGES
patch
|
blob
|
history
src/org/xwt/SpecialBoxProperty.java
patch
|
blob
|
history
diff --git
a/CHANGES
b/CHANGES
index
2f3eecd
..
1a1d746
100644
(file)
--- a/
CHANGES
+++ b/
CHANGES
@@
-443,3
+443,5
@@
15-Oct megacz Arguments.java, Trap.java: arguments.trapname
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
(file)
--- 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;
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;
}
return;
}
+ }
if (b.getParent() != null)
b.getParent().put(name, b.getParent(), value);
}};
if (b.getParent() != null)
b.getParent().put(name, b.getParent(), value);
}};