File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2701,7 +2701,7 @@ function addPosition(position) {
27012701 _vehicle_idname = ".vehicle" + vehicles [ _vehicle_id ] . uuid ;
27022702 $ ( _vehicle_idname ) . addClass ( 'active' ) ;
27032703 listScroll . refresh ( ) ;
2704- listScroll . scrollToElement ( _vehicle_idname ) ;
2704+ listScroll . scrollToElement ( _vehicle_idname , 0 ) ;
27052705 panTo ( vcallsign ) ;
27062706 clearTimeout ( periodical_focus_new ) ;
27072707 refreshSingleNew ( _vehicle_id ) ;
@@ -2779,7 +2779,7 @@ function addPosition(position) {
27792779 _vehicle_idname = ".vehicle" + vehicles [ _vehicle_id ] . uuid ;
27802780 $ ( _vehicle_idname ) . addClass ( 'active' ) ;
27812781 listScroll . refresh ( ) ;
2782- listScroll . scrollToElement ( _vehicle_idname ) ;
2782+ listScroll . scrollToElement ( _vehicle_idname , 0 ) ;
27832783 followVehicle ( $ ( _vehicle_idname ) . attr ( 'data-vcallsign' ) ) ;
27842784 } ;
27852785
@@ -4622,7 +4622,7 @@ function zoom_on_payload() {
46224622
46234623 // scroll list to the expanded element
46244624 listScroll . refresh ( ) ;
4625- listScroll . scrollToElement ( '.portrait .vehicle' + target . uuid ) ;
4625+ listScroll . scrollToElement ( '.portrait .vehicle' + target . uuid , 0 ) ;
46264626
46274627 zoomed_in = true ;
46284628}
You can’t perform that action at this time.
0 commit comments