fixed an issue where the simulator's UI was not rendering correctly on FireFox at loading. This fix is here to prepare the support of accessibility in the simulator. (#486)

This commit is contained in:
Etienne BAUDOUX 2017-08-02 15:21:58 -07:00 committed by Peli de Halleux
parent 5e7cba3882
commit 2f6e1fe277

View File

@ -3,6 +3,7 @@ namespace pxsim.input {
let pin = getPin(pinId);
if (!pin) return;
pin.isTouched();
runtime.queueDisplayUpdate();
pxtcore.registerWithDal(pin.id, DAL.MICROBIT_BUTTON_EVT_CLICK, handler);
}
@ -10,6 +11,7 @@ namespace pxsim.input {
let pin = getPin(pinId);
if (!pin) return;
pin.isTouched();
runtime.queueDisplayUpdate();
pxtcore.registerWithDal(pin.id, DAL.MICROBIT_BUTTON_EVT_UP, handler);
}