gipy: fix for zoom + touch update

pull/3117/head
frederic wagner 2023-11-27 09:34:41 +01:00
parent bd3f4489c4
commit 7e6b77ff4e
2 changed files with 7 additions and 4 deletions

View File

@ -120,10 +120,11 @@
* New display algorithm : way faster, larger roads, zooming out is now ok
* You will need to re-generate your maps because the new algorithm uses a different scale
* Better path simplification
* Waypoints autodetection using the map
* New option: sleep between waypoints
* Removed sharp turns auto-detection
* Waypoints autodetection using the map : this will generate more points than really needed but can still be effective.
* New option: sleep between waypoints
* Interface: centered svg preview + display file sizes
* Interface: disable/enable waypoints detection and elevation
* Touching the screen when sleeping will wake up but not change screen
* Removing footways (if bicycles not allowed) to reduce resource usage
* Removing footways (if bicycles not allowed) to reduce resource usage
* Switching screen will clear the screen immediately so you can know your screen touch has been received

View File

@ -1411,8 +1411,8 @@ function start_gipy(path, maps, interests, heights) {
value: status.zoomed_in,
format: (v) => (v ? "In" : "Out"),
onchange: (v) => {
status.reset_images_cache();
status.zoomed_in = v;
status.reset_images_cache();
},
},
/*LANG*/
@ -1461,6 +1461,8 @@ function start_gipy(path, maps, interests, heights) {
return;
}
if (active && status.heights !== null) {
g.clear();
g.flip();
status.screen = (status.screen + 1) % 3;
status.display();
}