mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-25 03:09:40 +00:00
Merge "Fixes for the scroll-up affordance"
This commit is contained in:
commit
feedc430d5
|
@ -299,6 +299,7 @@ body.mw-mlb-lightbox-open .mlb-main {
|
|||
.mw-mlb-drag-affordance {
|
||||
width: 100%;
|
||||
height: 32px;
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.mw-mlb-drag-icon {
|
||||
|
|
|
@ -469,10 +469,17 @@
|
|||
};
|
||||
|
||||
LIP.toggleMetadata = function () {
|
||||
var off = this.$controlBar.offset();
|
||||
$( 'html, body' ).animate( {
|
||||
scrollTop: off.top - 72
|
||||
} );
|
||||
var off = this.$controlBar.offset(),
|
||||
scroll = this.$main.scrollTop();
|
||||
if ( scroll > 0 ) {
|
||||
this.$main.animate( {
|
||||
scrollTop: 0
|
||||
}, 400 );
|
||||
} else {
|
||||
this.$main.animate( {
|
||||
scrollTop: off.top - 96
|
||||
}, 400 );
|
||||
}
|
||||
};
|
||||
|
||||
mw.LightboxInterface = LightboxInterface;
|
||||
|
|
Loading…
Reference in a new issue