Bartosz Dziewoński has uploaded a new change for review. https://gerrit.wikimedia.org/r/269158
Change subject: Element: Support duration of 0 in scrollIntoView (scroll without animation) ...................................................................... Element: Support duration of 0 in scrollIntoView (scroll without animation) Change-Id: I58d8d412464f5f6b13368568e5b5a8ff0c7f147b --- M src/Element.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/oojs/ui refs/changes/58/269158/1 diff --git a/src/Element.js b/src/Element.js index 6b770a5..992064f 100644 --- a/src/Element.js +++ b/src/Element.js @@ -621,7 +621,7 @@ } } if ( !$.isEmptyObject( anim ) ) { - $sc.stop( true ).animate( anim, config.duration || 'fast' ); + $sc.stop( true ).animate( anim, config.duration === undefined ? 'fast' : config.duration ); if ( callback ) { $sc.queue( function ( next ) { callback(); -- To view, visit https://gerrit.wikimedia.org/r/269158 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I58d8d412464f5f6b13368568e5b5a8ff0c7f147b Gerrit-PatchSet: 1 Gerrit-Project: oojs/ui Gerrit-Branch: master Gerrit-Owner: Bartosz Dziewoński <matma....@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits