Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
bd6e8a10
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bd6e8a10
编写于
4月 14, 2010
作者:
U
uta
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
6920842: Wheel events do not bubbling to the browser if they was not treated in applet.
Reviewed-by: art, anthony, peterz
上级
66340dd8
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
2 deletion
+17
-2
src/share/classes/java/awt/Component.java
src/share/classes/java/awt/Component.java
+5
-1
src/share/classes/java/awt/Container.java
src/share/classes/java/awt/Container.java
+10
-1
src/share/classes/javax/swing/plaf/basic/BasicScrollPaneUI.java
...are/classes/javax/swing/plaf/basic/BasicScrollPaneUI.java
+2
-0
未找到文件。
src/share/classes/java/awt/Component.java
浏览文件 @
bd6e8a10
...
...
@@ -4941,9 +4941,13 @@ public abstract class Component implements ImageObserver, MenuContainer,
// If we dispatch the event to toplevel ancestor,
// this could encolse the loop: 6480024.
anc
.
dispatchEventToSelf
(
newMWE
);
if
(
newMWE
.
isConsumed
())
{
e
.
consume
();
}
return
true
;
}
}
return
tru
e
;
return
fals
e
;
}
boolean
checkWindowClosingException
()
{
...
...
src/share/classes/java/awt/Container.java
浏览文件 @
bd6e8a10
...
...
@@ -4492,7 +4492,10 @@ class LightweightDispatcher implements java.io.Serializable, AWTEventListener {
retargetMouseEvent
(
mouseOver
,
id
,
e
);
break
;
}
e
.
consume
();
//Consuming of wheel events is implemented in "retargetMouseEvent".
if
(
id
!=
MouseEvent
.
MOUSE_WHEEL
)
{
e
.
consume
();
}
}
return
e
.
isConsumed
();
}
...
...
@@ -4800,6 +4803,12 @@ class LightweightDispatcher implements java.io.Serializable, AWTEventListener {
target
.
dispatchEvent
(
retargeted
);
}
}
if
(
id
==
MouseEvent
.
MOUSE_WHEEL
&&
retargeted
.
isConsumed
())
{
//An exception for wheel bubbling to the native system.
//In "processMouseEvent" total event consuming for wheel events is skipped.
//Protection from bubbling of Java-accepted wheel events.
e
.
consume
();
}
}
}
...
...
src/share/classes/javax/swing/plaf/basic/BasicScrollPaneUI.java
浏览文件 @
bd6e8a10
...
...
@@ -870,6 +870,8 @@ public class BasicScrollPaneUI
orientation
=
SwingConstants
.
HORIZONTAL
;
}
e
.
consume
();
if
(
e
.
getScrollType
()
==
MouseWheelEvent
.
WHEEL_UNIT_SCROLL
)
{
JViewport
vp
=
scrollpane
.
getViewport
();
if
(
vp
==
null
)
{
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录