Skip to content

Commit be50617

Browse files
committed
0.79: Ensure that tapping on pressure/altitude doesn't cause a menu to display temporarily
1 parent eb937a6 commit be50617

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/setting/ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@ of 'Select Clock'
8787
0.76: Add altitude calibration menu (and update README after menu changed)
8888
0.77: Save altitude calibration when user exits via reset
8989
0.78: Fix menu scroll restore on BangleJS1
90+
0.79: Ensure that tapping on pressure/altitude doesn't cause a menu to display temporarily

apps/setting/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "setting",
33
"name": "Settings",
4-
"version": "0.78",
4+
"version": "0.79",
55
"description": "A menu for setting up Bangle.js",
66
"icon": "settings.png",
77
"tags": "tool,system",

apps/setting/settings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,8 +1033,8 @@ function showTouchscreenCalibration() {
10331033
// Calibrate altitude - Bangle.js2 only
10341034
function showAltitude() {
10351035
function onPressure(pressure) {
1036-
menuPressure.value = Math.round(pressure.pressure);
1037-
menuAltitude.value = Math.round(pressure.altitude);
1036+
menuPressure.value = Math.round(pressure.pressure).toString(); // toString stops tapping on the item bringing up an adjustment menu
1037+
menuAltitude.value = Math.round(pressure.altitude).toString();
10381038
m.draw();
10391039
}
10401040
function altitudeDone() {

0 commit comments

Comments
 (0)