Closed Bug 1116709 Opened 9 years ago Closed 9 years ago

[Stingray] Improve key navigation feature

Categories

(Firefox OS Graveyard :: Gaia, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: lchang, Assigned: lchang)

References

Details

(Whiteboard: [ft:conndevices])

Attachments

(2 files)

We fail to navigate the elements which is much bigger than the current focused one under certain circumstances.
Attached file Demo
Put this file into "gaia/tv_apps/tv_shared/js/", run it in the browser and you will see the problem.
Attached file Pull request to master
Hi Tzu-Lin and John,

Could you take a look at my patch? Thanks.
Assignee: nobody → lchang
Status: NEW → ASSIGNED
Attachment #8542864 - Flags: review?(tzhuang)
Attachment #8542864 - Flags: review?(im)
The current behavior of smart-home will become a little bit strange because the size of "div#card-list-frame" is set to be fullscreen currently. Navigating to a fullscreen element should be unexpected. We may need to fix that in advance.
After this patch landed, we may reconsider if the patch in Bug 1114452 is still necessary or not.
Comment on attachment 8542864 [details] [review]
Pull request to master

Hi Rex,

Per comment 3, you're familiar with the interaction among SpatialNavigator and Smart-Home. Could you please help on this? Thanks.
Attachment #8542864 - Flags: review?(tzhuang) → review?(rexboy)
Comment on attachment 8542864 [details] [review]
Pull request to master

Looks good to me...

When we press "right" at the top-right corner, the focus will goes to the center-right element. According to the algorithm, it is correct. But is this what UX wants? IMO, if the patch of bug 1114452 also fixed it, we may need it.
Attachment #8542864 - Flags: review?(im) → review+
(In reply to John Hu [:johnhu][:johu][:醬糊小弟] (PTO from 12/27 ~ 1/4) from comment #6)
> When we press "right" at the top-right corner, the focus will goes to the
> center-right element. According to the algorithm, it is correct.

Actually, this behavior isn't correct. It's caused by what I mentioned at comment 3.
This patch looks good to me, but after landing we need to fix two regressions that based on
behavior of original spatial navigation:
1. (The one mentioned at comment. 3) In home-app, Pressing right key at search button
   shouldn't move focus to card list.
2. In app-deck, pressing up at second/third row of apps shouldn't move focus to the top
   scrollable.

For the first one it's just a css issue; the second one we need to adjust some structure
of home-app. So I'll hold my r+ until we can confirm those issue above are solved.
Comment on attachment 8542864 [details] [review]
Pull request to master

r=me but I would suggest landing together it with bug 1120381 and bug 1118569 which contain fix to the new behavior.
Attachment #8542864 - Flags: review?(rexboy) → review+
Whiteboard: [ft:conndevices]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: