Remove double scrollTop call
This commit is contained in:
@@ -155,8 +155,9 @@
|
|||||||
$firstTargetRegion = $list.find( '#' + this.regions[0] );
|
$firstTargetRegion = $list.find( '#' + this.regions[0] );
|
||||||
|
|
||||||
// Scroll to appropriate area
|
// Scroll to appropriate area
|
||||||
$list.scrollTop( 0 );
|
$list.scrollTop(
|
||||||
$list.scrollTop( $firstTargetRegion.offset().top - $list.offset().top );
|
$firstTargetRegion.offset().top - $list.offset().top + $list.scrollTop()
|
||||||
|
);
|
||||||
|
|
||||||
// Make the selected region (and it only) active
|
// Make the selected region (and it only) active
|
||||||
$( '.regionselector' ).removeClass( 'active' );
|
$( '.regionselector' ).removeClass( 'active' );
|
||||||
|
|||||||
Reference in New Issue
Block a user