Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1258276 - [TV][2.5] Upgrade js-spatial-navigation to v0.3 and fix…
Browse files Browse the repository at this point in the history
… broken features
  • Loading branch information
jostw committed Mar 21, 2016
1 parent b8629e1 commit bcfc7f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"underscore": "1.4.4",

"normalize.css": "~3.0.3",
"js-spatial-navigation": "git://github.com/luke-chang/js-spatial-navigation.git"
"js-spatial-navigation": "luke-chang/js-spatial-navigation#v0.3"
},
"ignore": [
"*.py",
Expand Down
2 changes: 1 addition & 1 deletion src/media/css/app-list.styl
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
}

// chrome only
&:not(*:root) {
@supports (-webkit-appearance:none) {
outline-color: $main-background-color;
}
}
16 changes: 9 additions & 7 deletions src/media/js/views/homepage.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,17 @@ define('views/homepage',
});
});

z.page.on('sn:willfocus', '.app-button', function() {
SpatialNavigation.pause();
z.page.on('sn:willfocus', '.app-button', function(e) {
if (e.originalEvent.detail.previousElement) {
SpatialNavigation.pause();

scrollToApp.call(this, function() {
SpatialNavigation.focus(this);
SpatialNavigation.resume();
});
scrollToApp.call(this, function() {
SpatialNavigation.focus(this);
SpatialNavigation.resume();
});

return false;
return false;
}
});

z.page.on('focus', '.app-button', function(e) {
Expand Down

0 comments on commit bcfc7f9

Please sign in to comment.