bugWorkaround.js 359 B

1234567891011121314151617181920
  1. export function goBack() {
  2. hmApp.setLayerY(0);
  3. hmUI.createWidget(hmUI.widget.FILL_RECT, {
  4. x: 0,
  5. y: 0,
  6. w: 192,
  7. h: 490,
  8. color: 0x0
  9. });
  10. timer.createTimer(350, 0, () => hmApp.goBack());
  11. }
  12. export function goBackGestureCallback(ev) {
  13. if(ev === hmApp.gesture.RIGHT) {
  14. goBack();
  15. return true;
  16. }
  17. return false;
  18. }