mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
a9b38c85c2
The events that get silenced here are already covered for native anonymous content by IsEventStoppedFromAnonymousScrollbar. In trees, where <xul:scrollbar> and <xul:scrollcorner> are part of the DOM, copy the handlers over into attributes on each instance. MozReview-Commit-ID: Huk5nFC7Qua --HG-- extra : rebase_source : f5e596f04c6a2022b9d6019d49e61bf64422f912
27 lines
1.4 KiB
XML
27 lines
1.4 KiB
XML
<?xml version="1.0"?>
|
|
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
|
|
|
|
|
<bindings id="scrollbarBindings"
|
|
xmlns="http://www.mozilla.org/xbl"
|
|
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
xmlns:xbl="http://www.mozilla.org/xbl">
|
|
|
|
<binding id="thumb" extends="xul:button" />
|
|
|
|
<binding id="scrollbar" bindToUntrustedContent="true">
|
|
<content clickthrough="always">
|
|
<xul:scrollbarbutton sbattr="scrollbar-up-top" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
|
|
<xul:scrollbarbutton sbattr="scrollbar-down-top" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
|
|
<xul:slider flex="1" xbl:inherits="disabled,curpos,maxpos,pageincrement,increment,orient,sborient=orient">
|
|
<xul:thumb sbattr="scrollbar-thumb" xbl:inherits="orient,sborient=orient,collapsed=disabled"
|
|
align="center" pack="center"/>
|
|
</xul:slider>
|
|
<xul:scrollbarbutton sbattr="scrollbar-up-bottom" type="decrement" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
|
|
<xul:scrollbarbutton sbattr="scrollbar-down-bottom" type="increment" xbl:inherits="curpos,maxpos,disabled,sborient=orient"/>
|
|
</content>
|
|
</binding>
|
|
</bindings>
|