microsoft / pxt-chibitronics

Chibitronics Love To Code board editor with Microsoft MakeCode
https://makecode.chibitronics.com
Other
23 stars 15 forks source link

Pin pressed/released doesn't work properly in Firefox simulator #148

Closed riknoll closed 6 years ago

riknoll commented 6 years ago

Tested code:

sensing.onPinEvent(DigitalPin.D5, PinEvent.Pressed, function () {
    lights.set(DigitalPin.D0, 1)
})
sensing.onPinEvent(DigitalPin.D5, PinEvent.Released, function () {
    lights.set(DigitalPin.D0, 0)
})

Works fine in Chrome, doesn't work in Firefox simulator.

riknoll commented 6 years ago

It also has issues in ios. Works fine when you press and release, but if you press it and then slide your finger away it will stay pressed instead of releasing.

pelikhan commented 6 years ago

Tested with mouse/touch in Firefox Windows.

pelikhan commented 6 years ago

Test on iOS - iPhone6 ok too.