Bug 237998 Scrollbars should block fewer events but scrollcorners should block more also setting default cursor on scrollcorners r=roc sr=alecf
git-svn-id: svn://10.0.0.236/trunk@155532 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
6226c0ca01
commit
c5ca777be6
@ -55,6 +55,8 @@ scrollbar {
|
||||
/* ::::: square at the corner of two scrollbars ::::: */
|
||||
|
||||
scrollcorner {
|
||||
-moz-binding: url(chrome://global/content/bindings/scrollbar.xml#scrollbar-base);
|
||||
cursor: default;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
|
||||
@ -133,6 +133,8 @@ scrollbarbutton:hover:active {
|
||||
/* ::::: square at the corner of two scrollbars ::::: */
|
||||
|
||||
scrollcorner {
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
|
||||
cursor: default;
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
|
||||
@ -107,7 +107,9 @@ scrollbarbutton:hover:active {
|
||||
|
||||
/* ::::: square at the corner of two scrollbars ::::: */
|
||||
|
||||
scrollcorner {
|
||||
scrollcorner {
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
|
||||
cursor: default;
|
||||
background-color: -moz-Dialog;
|
||||
}
|
||||
|
||||
|
||||
@ -52,6 +52,8 @@ scrollbar {
|
||||
/* ::::: square at the corner of two scrollbars ::::: */
|
||||
|
||||
scrollcorner {
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
|
||||
cursor: default;
|
||||
background-color: #B1BBC5;
|
||||
}
|
||||
|
||||
|
||||
@ -113,6 +113,8 @@ scrollbarbutton:hover:active {
|
||||
/* ::::: square at the corner of two scrollbars ::::: */
|
||||
|
||||
scrollcorner {
|
||||
-moz-binding: url("chrome://global/content/bindings/scrollbar.xml#scrollbar-base");
|
||||
cursor: default;
|
||||
background-color: #B1BBC5;
|
||||
}
|
||||
|
||||
|
||||
@ -10,8 +10,20 @@
|
||||
<xul:gripper/>
|
||||
</content>
|
||||
</binding>
|
||||
|
||||
<binding id="scrollbar-base">
|
||||
<handlers>
|
||||
<handler event="contextmenu" preventdefault="true"/>
|
||||
<handler event="mousedown" action="event.preventBubble();"/>
|
||||
<handler event="mouseup" action="event.preventBubble();"/>
|
||||
<handler event="click" action="event.preventBubble();"/>
|
||||
<handler event="dblclick" action="event.preventBubble();"/>
|
||||
<handler event="mousemove" action="event.preventBubble();"/>
|
||||
<handler event="contextmenu" action="event.preventBubble();"/>
|
||||
</handlers>
|
||||
</binding>
|
||||
|
||||
<binding id="scrollbar">
|
||||
<binding id="scrollbar" extends="chrome://global/content/bindings/scrollbar.xml#scrollbar-base">
|
||||
<content>
|
||||
<xul:scrollbarbutton sbattr="scrollbar-up-top" type="decrement" xbl:inherits="sborient=orient"/>
|
||||
<xul:scrollbarbutton sbattr="scrollbar-down-top" type="increment" hidden="true" xbl:inherits="sborient=orient"/>
|
||||
@ -68,18 +80,6 @@
|
||||
</body>
|
||||
</method>
|
||||
</implementation>
|
||||
|
||||
<handlers>
|
||||
<handler event="contextmenu" preventdefault="true"/>
|
||||
<handler event="mousedown" action="event.preventBubble();"/>
|
||||
<handler event="mouseup" action="event.preventBubble();"/>
|
||||
<handler event="click" action="event.preventBubble();"/>
|
||||
<handler event="dblclick" action="event.preventBubble();"/>
|
||||
<handler event="mouseover" action="event.preventBubble();"/>
|
||||
<handler event="mouseout" action="event.preventBubble();"/>
|
||||
<handler event="mousemove" action="event.preventBubble();"/>
|
||||
<handler event="contextmenu" action="event.preventBubble();"/>
|
||||
</handlers>
|
||||
</binding>
|
||||
</bindings>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user