2007-09-29
help! Opera的滚动条拦截了事件,怎么办
"Opera的滚动条拦截了事件"是这样的:
一个div 1使用 overflow:auto
里面的内容多时出现滚动条,这个很正常
但是我另外一个div 2是一个浮动层 当他和div1 的滚动条重合时, 点击他无效,触发的是div1的滚动条,这个问题怎么解决呢
div2的 zindex 大于 div1 在ie ff下都正常 就是 opera 9下不行
(其实这个问题就出在 我昨天发的那个 GT grid demo里, 用opera9 打开后,表格菜单的最下面那项怎么点都没效果,因为菜单那项和后面的滚动条重合了 )
后面附上简单的测试代码
请看看是怎么回事 谢谢了
一个div 1使用 overflow:auto
里面的内容多时出现滚动条,这个很正常
但是我另外一个div 2是一个浮动层 当他和div1 的滚动条重合时, 点击他无效,触发的是div1的滚动条,这个问题怎么解决呢
div2的 zindex 大于 div1 在ie ff下都正常 就是 opera 9下不行
(其实这个问题就出在 我昨天发的那个 GT grid demo里, 用opera9 打开后,表格菜单的最下面那项怎么点都没效果,因为菜单那项和后面的滚动条重合了 )
后面附上简单的测试代码
请看看是怎么回事 谢谢了
评论
hax
2007-11-07
Try Opera 9.50
From the changelog of Opera 9.50 Alpha 1, it is said:
...
Fixed various bugs where mouse events had built-in effects before script event processing was finished (cancelled mousedown should not move focus, blur/focus events caused by mousedown event should be processed after rather than before the mousedown event causing them, and so on)
...
If Opera 9.50 still has this 'bug', then this behavior may be by design.
From the changelog of Opera 9.50 Alpha 1, it is said:
...
Fixed various bugs where mouse events had built-in effects before script event processing was finished (cancelled mousedown should not move focus, blur/focus events caused by mousedown event should be processed after rather than before the mousedown event causing them, and so on)
...
If Opera 9.50 still has this 'bug', then this behavior may be by design.
fins
2007-10-16
太谢谢了 :'(
afcn0
2007-10-16
昨天给你向opera邮件列表发了封信
Scrollbar click event bug on Opera
回复
回复所有人
转发
打印
将 su 添加到通讯录
删除此邮件
显示原始邮件
邮件内容出现乱码?
致 opera-users
显示详细信息 10月15日 (21小时前)
I have found a opera bug of the click event and the div's scrollbar, look at the example:
<div style="width:100px;overflow:auto">ajkoooooooooooooooooooooooo</div>
<div style="width:300px;height:300px;position:absolute;background:blue;opacity:0.3;top:0;" onclick="alert(123)"></div>
You can see two divs, one is below, one is on the top on another one, and you click on the blue div, you can see the alert out, but when you click on the scrollbar of the below div, you can move the scrollbar, and the blue div's onclick event haven't been fired, tested on opera 9.23 and 9.5alpha1, Is this a known bug? If known, how to fix it, or unknown, will it be fixed in 9.5 next alpha? Thanks for reply.
我也是刚加入opera邮件列表,好象没人,还向opera提交了个bug,http://my.opera.com/上不了,那是论坛,估计邮件列表回信可能性不大
Scrollbar click event bug on Opera
回复
回复所有人
转发
打印
将 su 添加到通讯录
删除此邮件
显示原始邮件
邮件内容出现乱码?
致 opera-users
显示详细信息 10月15日 (21小时前)
I have found a opera bug of the click event and the div's scrollbar, look at the example:
<div style="width:100px;overflow:auto">ajkoooooooooooooooooooooooo</div>
<div style="width:300px;height:300px;position:absolute;background:blue;opacity:0.3;top:0;" onclick="alert(123)"></div>
You can see two divs, one is below, one is on the top on another one, and you click on the blue div, you can see the alert out, but when you click on the scrollbar of the below div, you can move the scrollbar, and the blue div's onclick event haven't been fired, tested on opera 9.23 and 9.5alpha1, Is this a known bug? If known, how to fix it, or unknown, will it be fixed in 9.5 next alpha? Thanks for reply.
我也是刚加入opera邮件列表,好象没人,还向opera提交了个bug,http://my.opera.com/上不了,那是论坛,估计邮件列表回信可能性不大
fins
2007-10-16
关于这个问题 能不能有哪位好心人帮我翻译成英文
去opera官方论坛问问解决方案啊 谢谢了 :'(
去opera官方论坛问问解决方案啊 谢谢了 :'(
fins
2007-10-15
再次证明 是opera的bug
因为 extjs 官网上的例子也是如此
就算我水平不行 写除了垃圾代码 导致出现这个bug,
那ext dojo mootools不可能都和我一样垃圾吧
唉 可惜我英文巨烂 不知道 opear官方对这个问题有解释没
是否下个版本会修正?还是他们故意这么设计的?还是他们还不知道这个bug呢??
因为 extjs 官网上的例子也是如此
就算我水平不行 写除了垃圾代码 导致出现这个bug,
那ext dojo mootools不可能都和我一样垃圾吧
唉 可惜我英文巨烂 不知道 opear官方对这个问题有解释没
是否下个版本会修正?还是他们故意这么设计的?还是他们还不知道这个bug呢??
fins
2007-10-15
最新上传了 演示这个bug的html文件 麻烦大家再帮忙看看 谢谢了
发表评论
提醒: 该博客已发表在公共论坛,博客所有留言会成为论坛回贴,留言请注意遵守论坛发贴规则
- 浏览: 706249 次
- 性别:

- 来自: 小胖儿的大城

- 详细资料
搜索本博客
我的相册
David Recordon
共 63 张
共 63 张
链接
最新评论
-
EXT 2 绚丽表格 背后的 ...
楼上的真是锐道的好员工啊 dorado整体表现确实不错 但是没有哪个单项可以用 ...
-- by fins -
EXT 2 绚丽表格 背后的 ...
http://www.bstek.com/dorado5/performance ...
-- by hotbarsmu -
[GT-Grid]列表组件 GT-Gr ...
如果一切正常 下周应该会出一个前后台结合的例子 例子已经在编写中了 不过为了 ...
-- by fins -
[GT-Grid]列表组件 GT-Gr ...
fins什么时候会有和服务端结合的版本呢?您可以给个简单的案例吗?谢谢
-- by hgq0011 -
[GT-Grid]列表组件 GT-Gr ...
这个是和ecside完全不同的产品 自然看起来也会面目全非了 呵呵
-- by fins






评论排行榜