mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RevisionSlider
synced 2024-11-15 03:33:45 +00:00
Merge "Update scroll type detection"
This commit is contained in:
commit
31b79d98fd
|
@ -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