Places: Don't update params for small changes
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
82a02e5032
commit
380bc4ec6c
1 changed files with 2 additions and 2 deletions
|
@ -130,11 +130,11 @@
|
|||
const changed = Math.abs(this.query.lat - pos.lat) > 0.001 ||
|
||||
Math.abs(this.query.long - pos.lng) > 0.001;
|
||||
|
||||
if(!changed) return;
|
||||
|
||||
this.query.lat = pos.lat.toString();
|
||||
this.query.long = pos.lng.toString();
|
||||
|
||||
if(!changed) return;
|
||||
|
||||
this.search();
|
||||
},
|
||||
startPos() {
|
||||
|
|
Loading…
Reference in a new issue