mirror of https://github.com/espruino/BangleApps
Merge pull request #3057 from thyttan/setting
setting: Prepend 'LCD->Calibration' touch listenerpull/3054/head
commit
ded269bc3e
|
@ -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.
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue