Update scroll type detection

Port of a fix in the original source:
1c6d684503

Change-Id: I2d53e467b79d586efc079a15ebc0a52382352f9e
This commit is contained in:
WMDE-Fisch 2017-08-06 23:49:48 +02:00
parent 539783b8c4
commit 7c58766b48

View file

@ -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';