Skip to content

Commit 40ce8ef

Browse files
committed
Another attempt to try and fix the list scrolling.
1 parent 2dde39e commit 40ce8ef

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed
2.21 KB
Loading

img/markers/payload-recovered.png

1.37 KB
Loading

js/tracker.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var position_id = 0;
33
var data_url = "https://api.v2.sondehub.org/datanew";
44
var receivers_url = "https://api.v2.sondehub.org/listeners";
55
var predictions_url = "https://api.v2.sondehub.org/predictions?vehicles=";
6+
var recovered_sondes_url = "https://api.v2.sondehub.org/recoveries";
67

78
var habitat_max = 400;
89
//var habitat_url = "//habitat.habhub.org/habitat/";
@@ -1698,9 +1699,8 @@ function addPosition(position) {
16981699
_vehicle_id = marker.title.split(' ')[1];
16991700
_vehicle_idname = ".vehicle"+vehicles[_vehicle_id].uuid;
17001701
$(_vehicle_idname).addClass('active');
1701-
listScroll.scrollToElement(_vehicle_idname);
1702+
listScroll.scrollToElement(_vehicle_idname, null, true);
17021703
followVehicle($(_vehicle_idname).attr('data-vcallsign'));
1703-
17041704
});
17051705

17061706
gmaps_elements.push(marker);

0 commit comments

Comments
 (0)