-
Notifications
You must be signed in to change notification settings - Fork 2
mouse support #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
mouse support #33
Conversation
Conflicts: source/main.js
|
do you want to merge it to master? |
|
Hi Alex, Im gonna grab some lunch now. I will pull this and check it out right after. |
|
thank you and Bon Appetit. |
Usage: weight-override-up='namespace:test', weight-override-down='namespace:test' All focusable elements that have the same namespace will get better chance to be selected
|
hello? |
more restrictive
|
still here? |
|
Hi Alex, looking at this right now. Refactoring some items to make it more in line with existing code base. We recently came across a platform where the 'mouseover' event is not available. It only provides the 'mouseenter' event. So I made the mouseover event name configurable. Anyhow. I just finished up the work on the Mouse Support and pushed. I do not understand the namespace feature. Can you describe to us how that is useful and add some tests? |
|
Thank you! hope it was clear.. |
|
https://jsfiddle.net/spqtacrv/ elements in red container could be under or above elements of "green container". |
|
@salexch regarding this issue. The 'scrollable' containers have always been a problem. We didnt want to address them with this library, though, maybe we will need to now. On old smart TV's. Native scroll was out of the question. In fact, it would crash the older samsung devices if you attempted to scroll an element. We would always implement a fake scroll, an element with overflow hidden, then its contents moving on a rail. It seems like the newer TV's encourage scrollable interfaces. So, as it stands, I understand why you wanted this feature. But it will take more effort if we are to handle items that scroll. We have overcome this issue slightly differently on all the newer TV's. It could be a little weird. We will need to implement some flag you can put on the containing element that needs to scroll. Something like, <div focus-scroll-container >
<div focusable ></div>
<div focusable ></div>
<div focusable ></div>
<div focusable ></div>
<div focusable ></div>
</div>This will scroll the container to ensure the next item is visible in the direction you wanted to move. We will need to ensure this is configurable to work with all of the implementations (some people want a whole new list of items when scrolling...kind of like a paginated scroll. Some people want just the next item showing. ) Anyhow. I will get back to you tomorrow. Thanks for clarifying your needs. |
|
I think introducing namespace is the most generic solution. In filmeeze you
|
|
in filmeeze its called utils/binders/gridBySelector.js and there is no need to check the element amount in the container (like with rowHeight in view.js) |
2. add mutation debounce 3. add event for focus stay 4. simple initialization
I think mouse support should be part of the project..
in tv apps, user can switch from remote to mouse easily, so for better ux it should be supported out of the box, developer will gain from it too..