mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 890897 - Don't show overlay scrollbars when we don't end up scrolling the page because we're already at an acceptable place. r=roc
This commit is contained in:
parent
90e5017497
commit
bcad140bc2
@ -2934,10 +2934,6 @@ void nsGfxScrollFrameInner::CurPosAttributeChanged(nsIContent* aContent)
|
||||
(mVScrollbarBox && mVScrollbarBox->GetContent() == aContent),
|
||||
"unexpected child");
|
||||
|
||||
if (mScrollbarActivity) {
|
||||
mScrollbarActivity->ActivityOccurred();
|
||||
}
|
||||
|
||||
// Attribute changes on the scrollbars happen in one of three ways:
|
||||
// 1) The scrollbar changed the attribute in response to some user event
|
||||
// 2) We changed the attribute in response to a ScrollPositionDidChange
|
||||
@ -2970,6 +2966,10 @@ void nsGfxScrollFrameInner::CurPosAttributeChanged(nsIContent* aContent)
|
||||
return;
|
||||
}
|
||||
|
||||
if (mScrollbarActivity) {
|
||||
mScrollbarActivity->ActivityOccurred();
|
||||
}
|
||||
|
||||
bool isSmooth = aContent->HasAttr(kNameSpaceID_None, nsGkAtoms::smooth);
|
||||
if (isSmooth) {
|
||||
// Make sure an attribute-setting callback occurs even if the view
|
||||
|
Loading…
Reference in New Issue
Block a user