-
Notifications
You must be signed in to change notification settings - Fork 148
Any plans on focus system? #40
Comments
Yes @EloB!
Anything that you want to help on ReactTV or talk about the future release. I'm available for talk |
Nice :) I just discovered this by Dan Abramov shared this on twitter. My current customer uses smart tv:s. So built some apps so I know the struggle of building performant apps in this area. When I have time I will look into the codebase and see if I can contribute with something. A tip for Orsay is to add A good way to find documentation for Orsay is to use the archive.org wayback machine. Their new site doesn't always show everything about "legacy platform" and I found some lost information when using that method. Also add this to babel (if that is used) is a good win for performance. :)
Rx or some other reactive framework is really nice to have as well. |
Sure, I'll be happy to help.
I didn't know. Thanks for sharing it. About babel and Reactive framework, I'm studying more other options and possibilites, even hacks hehe. I'm closing this issue, but about keyboard navigation I linked a PR that I'm working |
@EloB you can install legacy Samsung SDK and debug Orsay app with chrome dev tools on emulator. @raphamorim i have several good examples on implementing dpad focus system for react. |
Please share with me this examples, I just started work on it :D |
@DChinin Thanks for the info. We are currently not using emulators. They feel far from the end result. We are developing realtime on the hardware instead and shares keystrokes from your desktop keyboard to the tv:s. So you don't have to sit with a bunch of remotes in front of you. |
I recently developed a test app to a samsung tizen tv and created a wrapper around the js-spatial-navigation to work as react components. It was my very first contact with both tv and react so it is pretty simple, but works 😄. |
@dead We have done the same but we discovered a bad thing that browsers scroll focused elements into view even in |
@EloB yeah, we had to cancel out this scrolling by setting scroll{Top,Left} to 0 for all parents of focused element, but that breaks performance. I think the right way to do focus managements is not using dom apis, since the (custom)renderer knows all the elements that are focusable at the moment, it can hold focus state. |
What about a navigation based on a component hierarchy like the one on BBC-TAL? |
@idmitriev We do the same with the |
@EloB |
@dead Probably modern browsers might have implemented like that but it's a non standard. What I seen on the actual devices (Tizen/Orsay/Ps4) have been problematic. https://developer.mozilla.org/en-US/docs/Web/Events/focus
|
@dead Or did I get you wrong? Is it possible to disable the |
A bad thing with |
It is possible to disable the |
Had a quick look at js-spatial-navigation source, seems like there is a CustomEvent triggered on element focus\blur. |
@idmitriev |
More navigation stuff 😄 |
Hello, nice to see some open source projects in this area. Working right now with React and smart tv:s and built to multiple smart tv platforms and consoles (playstation). If I have time over I can see if I can contribute. One thing that I always thinks of is the focus system. Web is really good at mouse interaction but keyboard navigation is lacking. Is that something you are planning to look into?
Best regards
The text was updated successfully, but these errors were encountered: