mirror of
https://github.com/house-of-abbey/GarminHomeAssistant.git
synced 2025-06-18 04:18:35 +00:00
Added confirmation of tap event and amended delegate decoding of actions.
This commit is contained in:
@ -148,16 +148,8 @@ class HomeAssistantViewDelegate extends WatchUi.Menu2InputDelegate {
|
||||
}
|
||||
}
|
||||
|
||||
function onSwipe(swipeEvent) as Lang.Boolean {
|
||||
switch (swipeEvent.getDirection()) {
|
||||
case WatchUi.SWIPE_RIGHT:
|
||||
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
||||
break;
|
||||
|
||||
default:
|
||||
// Do nothing
|
||||
break;
|
||||
}
|
||||
return true;
|
||||
function onBack() {
|
||||
WatchUi.popView(WatchUi.SLIDE_RIGHT);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user