mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 03:33:45 +00:00
Update scroll type detection
Port of a fix in the original source:
1c6d684503
Change-Id: I2d53e467b79d586efc079a15ebc0a52382352f9e
This commit is contained in:
parent
539783b8c4
commit
7c58766b48
|
@ -95,13 +95,13 @@
|
|||
$dummy = $( '<div>' )
|
||||
.css( {
|
||||
dir: 'rtl',
|
||||
width: '1px',
|
||||
width: '4px',
|
||||
height: '1px',
|
||||
position: 'absolute',
|
||||
top: '-1000px',
|
||||
overflow: 'scroll'
|
||||
} )
|
||||
.text( 'A' )
|
||||
.text( 'ABCD' )
|
||||
.appendTo( 'body' )[ 0 ];
|
||||
if ( $dummy.scrollLeft > 0 ) {
|
||||
return 'default';
|
||||
|
|
Loading…
Reference in a new issue