зеркало из https://github.com/mozilla/gecko-dev.git
Bug 634377 - Allow scrolling if scrollbox is not already at zero. [r=mbrubeck, a=blocking]
This commit is contained in:
Родитель
968b89a7e0
Коммит
0c0a31537f
|
@ -593,10 +593,13 @@ var ScrollUtils = {
|
|||
*/
|
||||
_defaultDragger: {
|
||||
isDraggable: function isDraggable(target, scroller) {
|
||||
let sX = {}, sY = {};
|
||||
let sX = {}, sY = {},
|
||||
pX = {}, pY = {};
|
||||
scroller.getPosition(pX, pY);
|
||||
scroller.getScrolledSize(sX, sY);
|
||||
let rect = target.getBoundingClientRect();
|
||||
return { x: sX.value > rect.width, y: sY.value > rect.height };
|
||||
return { x: (sX.value > rect.width || pX.value != 0),
|
||||
y: (sY.value > rect.height || pY.value != 0) };
|
||||
},
|
||||
|
||||
dragStart: function dragStart(cx, cy, target, scroller) {
|
||||
|
|
|
@ -414,12 +414,14 @@ richlistitem description.normal {
|
|||
color: gray;
|
||||
font-size: @font_small@ !important;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
richlistitem label.normal-black,
|
||||
richlistitem description.normal-black {
|
||||
font-size: @font_small@ !important;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
richlistitem label.normal-bold,
|
||||
|
@ -427,6 +429,7 @@ richlistitem description.normal-bold {
|
|||
font-weight: bold;
|
||||
font-size: @font_small@ !important;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
richlistitem[selected="true"] {
|
||||
|
|
Загрузка…
Ссылка в новой задаче