P8Apps
P8Apps copied to clipboard
wrong BTN event when load xxx.app.js
An wrong BTN pressed event will fired automaticly with out release event when i touching the ico to enter an app with the code load( xxx.app.js),
And then the BTN pressed event will not fired when i press the button sides of the watch manualy but release event.
And the second press will generate the right event include the press and release event.
I don't know why, and can't find the reason : (
But the BTN event has not appeared when i run the same app from the webIde Storage directly.
I's the code in xxx.app.js here
setWatch(pressedFun, D17,{repeat:true,edge:"rising"});
setWatch(releasedFun, D17,{repeat:true,edge:"falling"});
I tested many app code and has the same problem
Launching an app needs two touches. The first selects the app, the second touch launches it. That’s the correct behaviour. Pressing the side button always returns to launcher.
Thanks for the rapid reply!