From 09d29e88cc92c3eac0c1bbaf91f6428a02a38d3f Mon Sep 17 00:00:00 2001 From: Dan Rosart Date: Sat, 6 Oct 2018 16:07:14 -0700 Subject: [PATCH] Don't update location if it doesn't change --- client/geolocation.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/client/geolocation.coffee b/client/geolocation.coffee index f83c5c377..0b09c4ef0 100644 --- a/client/geolocation.coffee +++ b/client/geolocation.coffee @@ -32,6 +32,7 @@ updateLocation = do -> if last? return if pos.lat == last.lat and pos.lng == last.lng return if distance(last, pos) < GEOLOCATION_DISTANCE_THRESHOLD + last = pos Tracker.nonreactive -> Meteor.call 'locateNick', nick: nick