P8Apps icon indicating copy to clipboard operation
P8Apps copied to clipboard

wrong BTN event when load xxx.app.js

Open tyrone1984 opened this issue 4 years ago • 3 comments

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"});

tyrone1984 avatar May 21 '21 11:05 tyrone1984

I tested many app code and has the same problem

tyrone1984 avatar May 21 '21 11:05 tyrone1984

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.

jeffmer avatar May 21 '21 21:05 jeffmer

Thanks for the rapid reply!

tyrone1984 avatar May 26 '21 04:05 tyrone1984