Merge pull request #3057 from thyttan/setting
setting: Prepend 'LCD->Calibration' touch listenermaster
commit
ded269bc3e
|
|
@ -72,3 +72,5 @@ of 'Select Clock'
|
||||||
0.63: Whitelist: Try to resolve peer addresses using NRF.resolveAddress() - for 2v19 or 2v18 cutting edge builds
|
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
|
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",
|
"id": "setting",
|
||||||
"name": "Settings",
|
"name": "Settings",
|
||||||
"version": "0.64",
|
"version": "0.65",
|
||||||
"description": "A menu for setting up Bangle.js",
|
"description": "A menu for setting up Bangle.js",
|
||||||
"icon": "settings.png",
|
"icon": "settings.png",
|
||||||
"tags": "tool,system",
|
"tags": "tool,system",
|
||||||
|
|
|
||||||
|
|
@ -899,6 +899,7 @@ function showTouchscreenCalibration() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function touchHandler(_,e) {
|
function touchHandler(_,e) {
|
||||||
|
E.stopEventPropagation&&E.stopEventPropagation();
|
||||||
var spot = corners[currentCorner];
|
var spot = corners[currentCorner];
|
||||||
// store averages
|
// store averages
|
||||||
if (spot[0]*2 < g.getWidth())
|
if (spot[0]*2 < g.getWidth())
|
||||||
|
|
@ -921,7 +922,7 @@ function showTouchscreenCalibration() {
|
||||||
}
|
}
|
||||||
showTapSpot();
|
showTapSpot();
|
||||||
}
|
}
|
||||||
Bangle.on('touch', touchHandler);
|
Bangle.prependListener&&Bangle.prependListener('touch',touchHandler)||Bangle.on('touch',touchHandler);
|
||||||
|
|
||||||
showTapSpot();
|
showTapSpot();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue