0.79: Ensure that tapping on pressure/altitude doesn't cause a menu to display temporarily

master
Gordon Williams 2025-06-17 10:21:59 +01:00
parent eb937a6f67
commit be50617d11
3 changed files with 4 additions and 3 deletions

View File

@ -87,3 +87,4 @@ of 'Select Clock'
0.76: Add altitude calibration menu (and update README after menu changed)
0.77: Save altitude calibration when user exits via reset
0.78: Fix menu scroll restore on BangleJS1
0.79: Ensure that tapping on pressure/altitude doesn't cause a menu to display temporarily

View File

@ -1,7 +1,7 @@
{
"id": "setting",
"name": "Settings",
"version": "0.78",
"version": "0.79",
"description": "A menu for setting up Bangle.js",
"icon": "settings.png",
"tags": "tool,system",

View File

@ -1033,8 +1033,8 @@ function showTouchscreenCalibration() {
// Calibrate altitude - Bangle.js2 only
function showAltitude() {
function onPressure(pressure) {
menuPressure.value = Math.round(pressure.pressure);
menuAltitude.value = Math.round(pressure.altitude);
menuPressure.value = Math.round(pressure.pressure).toString(); // toString stops tapping on the item bringing up an adjustment menu
menuAltitude.value = Math.round(pressure.altitude).toString();
m.draw();
}
function altitudeDone() {