aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-28 07:47:41 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-28 07:47:41 +0800
commit1da702b92a1bb9a6b16d5135e9f0e40d4e2d27c8 (patch)
tree02a781aba7e3ca7fc8494afe68ae54a2eb48cc5a /features
parent6b4a3494453850abbda11dd1f3a2e40274ee4c3e (diff)
downloadSoopyV2-1da702b92a1bb9a6b16d5135e9f0e40d4e2d27c8.tar.gz
SoopyV2-1da702b92a1bb9a6b16d5135e9f0e40d4e2d27c8.tar.bz2
SoopyV2-1da702b92a1bb9a6b16d5135e9f0e40d4e2d27c8.zip
Fix stuttering when loading waypoint path
Diffstat (limited to 'features')
-rw-r--r--features/events/index.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/features/events/index.js b/features/events/index.js
index af8a664..c10e2f8 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -175,7 +175,9 @@ class Events extends Feature {
step_5s(){
if(this.showingWaypoints){
if(this.burrialWaypointsPath.getValue() || this.burrialWaypointsNearest.getValue()){
- this.updateBurrialPath()
+ new Thread(()=>{
+ this.updateBurrialPath()
+ }).start()
}
}
this.sortBurrialLocations()
@@ -379,7 +381,9 @@ class Events extends Feature {
"chain": -1,
"fromApi": false
})
- this.updateBurrialPath()
+ new Thread(()=>{
+ this.updateBurrialPath()
+ }).start()
}
}
}
@@ -411,7 +415,9 @@ class Events extends Feature {
})
if(this.burrialData.historicalLocations.length > 10) this.burrialData.historicalLocations.pop()
if(this.lastPathCords) this.lastPathCords.shift()
- this.updateBurrialPath()
+ new Thread(()=>{
+ this.updateBurrialPath()
+ }).start()
}
updateBurrialPath(){
if(this.burrialWaypointsPath.getValue() || this.burrialWaypointsNearest.getValue()){