In the docs for widget.newSwitch() it says this:
Listener. This is an optional function to be called as soon as the user releases the Switch (while their finger was still over theSwitch). This callback function does not require you to test for an event.phase (as it only has one) and should return true.
In build 1076 it doesn’t work as described. In fact, if you just click/tap the switch, onRelease is never called, although the switch stat changes toggles on/off.
However, if you manually slide the switch, onRelease works in that case.
At least for me – anybody else run into this?
Jay