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