Skip to content

Commit befa9f0

Browse files
Mark JessopMark Jessop
authored andcommitted
Remove animation when selecting balloons or vehicles on the map
1 parent f59fc6f commit befa9f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/tracker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)