mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-09-25 11:17:54 +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 {
|
.mw-mlb-drag-affordance {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
|
cursor: move;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mw-mlb-drag-icon {
|
.mw-mlb-drag-icon {
|
||||||
|
|
|
@ -469,10 +469,17 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
LIP.toggleMetadata = function () {
|
LIP.toggleMetadata = function () {
|
||||||
var off = this.$controlBar.offset();
|
var off = this.$controlBar.offset(),
|
||||||
$( 'html, body' ).animate( {
|
scroll = this.$main.scrollTop();
|
||||||
scrollTop: off.top - 72
|
if ( scroll > 0 ) {
|
||||||
} );
|
this.$main.animate( {
|
||||||
|
scrollTop: 0
|
||||||
|
}, 400 );
|
||||||
|
} else {
|
||||||
|
this.$main.animate( {
|
||||||
|
scrollTop: off.top - 96
|
||||||
|
}, 400 );
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
mw.LightboxInterface = LightboxInterface;
|
mw.LightboxInterface = LightboxInterface;
|
||||||
|
|
Loading…
Reference in a new issue