Commit 88fe1188 authored by Sharp Hall's avatar Sharp Hall

Debounce display refresh faster

parent 5695fd04
......@@ -88,7 +88,7 @@ var refreshDisplay = _.debounce(function () {
});
ReactDOM.render(<VehicleList vehicleList={flatDistanceSorted} />,
document.getElementById('routelist'));
}, 3000);
}, 500);
function getSeptaTransitView() {
if (document.visibilityState == "visible") {
......@@ -115,10 +115,10 @@ $(function () {
}
});
navigator.geolocation.watchPosition(function(position) {
console.log(position);
currentLocation = {latitude: position.coords.latitude, longitude: position.coords.longitude};
refreshDisplay();
});
refreshDisplay();
});
class Vehicle extends React.Component {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment