Merge pull request #3057 from thyttan/setting

setting: Prepend 'LCD->Calibration' touch listener
pull/3054/head
Gordon Williams 2023-10-20 09:04:55 +01:00 committed by GitHub
commit ded269bc3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -71,4 +71,6 @@ of 'Select Clock'
0.62: Fix whitelist showing as 'on' by default when it's not after 0.59
0.63: Whitelist: Try to resolve peer addresses using NRF.resolveAddress() - for 2v19 or 2v18 cutting edge builds
Remove 'beta' label from passkey - it's been around for a while and works ok
0.64: Default to wakeOnTwist being off
0.64: Default to wakeOnTwist being off
0.65: Prepend 'LCD->Calibration' touch listener and stop event propagation.

View File

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

View File

@ -899,6 +899,7 @@ function showTouchscreenCalibration() {
}
function touchHandler(_,e) {
E.stopEventPropagation&&E.stopEventPropagation();
var spot = corners[currentCorner];
// store averages
if (spot[0]*2 < g.getWidth())
@ -921,7 +922,7 @@ function showTouchscreenCalibration() {
}
showTapSpot();
}
Bangle.on('touch', touchHandler);
Bangle.prependListener&&Bangle.prependListener('touch',touchHandler)||Bangle.on('touch',touchHandler);
showTapSpot();
}