1
0
Fork 0

gipy : fix for backwards position in heights

master
frederic wagner 2023-08-24 10:01:50 +02:00
parent b8e29f397d
commit cf0695c3eb
1 changed files with 4 additions and 0 deletions

View File

@ -996,8 +996,12 @@ class Status {
} else {
let current_position = 0;
if (this.current_segment !== null) {
if (go_backwards) {
current_position = this.remaining_distance();
} else {
current_position =
this.remaining_distances[0] - this.remaining_distance();
}
}
if (this.screen == HEIGHTS_FULL) {
this.display_heights(0, current_position, this.remaining_distances[0]);