From 540c87f3c3a91f7b043d3f10cf10ba980139cf1b Mon Sep 17 00:00:00 2001 From: Nevtep Date: Mon, 4 Jul 2016 00:50:44 -0300 Subject: [PATCH 1/2] Add dirY to navMove calls to allow horizontal traverse --- navigationMixin.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navigationMixin.jsx b/navigationMixin.jsx index 15e00db..cb9e6e7 100644 --- a/navigationMixin.jsx +++ b/navigationMixin.jsx @@ -37,7 +37,7 @@ module.exports = { } else if (typeof this.navOut === 'function') { return this.navOut(dir, dirY); } else if (this.navData.parent) { - return this.navData.parent.navGetMove(dir); + return this.navData.parent.navGetMove(dir, dirY); } }.bind(this); From b439504a8231e1f2867c80cd9c998278c29e8dc7 Mon Sep 17 00:00:00 2001 From: Nevtep Date: Wed, 24 Aug 2016 17:00:25 -0300 Subject: [PATCH 2/2] prevent event default to avoid browser interaction --- navigationController.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/navigationController.js b/navigationController.js index 47f5e0c..00687f3 100644 --- a/navigationController.js +++ b/navigationController.js @@ -71,18 +71,22 @@ module.exports = { case 'LEFT': this.navMove(0, -1); event.stopPropagation(); + event.preventDefault(); break; case 'UP': this.navMove(-1, 0); event.stopPropagation(); + event.preventDefault(); break; case 'RIGHT': this.navMove(0, 1); event.stopPropagation(); + event.preventDefault(); break; case 'DOWN': this.navMove(1, 0); event.stopPropagation(); + event.preventDefault(); break; default: if (this.currentFocus.navHandleKey) {