From 7c58766b489ccdf3ed37a1af5b6d112aaf956779 Mon Sep 17 00:00:00 2001 From: WMDE-Fisch Date: Sun, 6 Aug 2017 23:49:48 +0200 Subject: [PATCH] Update scroll type detection Port of a fix in the original source: https://github.com/othree/jquery.rtl-scroll-type/commit/1c6d6845032c3cd91b2b387634642471d711380d Change-Id: I2d53e467b79d586efc079a15ebc0a52382352f9e --- modules/ext.RevisionSlider.util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/ext.RevisionSlider.util.js b/modules/ext.RevisionSlider.util.js index 6d9450dd..66e51d6b 100644 --- a/modules/ext.RevisionSlider.util.js +++ b/modules/ext.RevisionSlider.util.js @@ -95,13 +95,13 @@ $dummy = $( '
' ) .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';