GWT:禁用Firefox的鼠标中键滚动 [英] GWT: Disable middle mouse button scroll for firefox

查看:126
本文介绍了GWT:禁用Firefox的鼠标中键滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在GWT自定义模式消息框中。它也有底层。这意味着除非点击确定,否则我希望限制网页上的任何用户操作。

I made in GWT custom modal message box. It has also bottom layer. This means that I expect restriction of any user action at the page except clicking 'Ok'.

我做了类似(点击显示对话框)。

I made something like this (click on the 'show dialog box').

层覆盖所有底部控件。它有风格:

I have made bottom layer that covers all bottom controls. It has style:

.glass {
    background-color: #000;
    opacity: 0.50;
    -moz-opacity: 0.50;
    filter: alpha(opacity = 50);

    width: 100%;
    height: 100%;
}

但是在firefox用户可以点击鼠标中键,到底层不覆盖的区域。

But the problem that in firefox user can click middle mouse button and scroll away, to the area that bottom layer will not cover.

在GWT我禁用滚动。它在IE中有帮助,但不在FF中。

In GWT i disabled scroll. It helps in IE, but not in FF.

Window.enableScrolling( false );    

如何短时间禁用鼠标滚动?
或者我可以使面板的CSS将覆盖也隐藏页面区域?

How to disable middle mouse scroll for short time? Or i can make CSS for panel that will cover also hidden page area?

感谢任何帮助!
和对不起我的英语。

Thanks for any help! and Sorry for my english.

推荐答案

有一个 GlassPanel -toolkit-incubator /rel =nofollow noreferrer> Google Web Toolkit孵化器 - 您可能会从中获得一些想法(他们没有解决/限制中间按钮,只是扩展面板覆盖整个页面,包括隐藏区域)。

There's a GlassPanel in the Google Web Toolkit Incubator - you might get some ideas from there (they didn't solve/restrict the middle button, just extended the panel to cover the whole page, including the hidden area).

这篇关于GWT:禁用Firefox的鼠标中键滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆