Git Product home page Git Product logo

Comments (5)

DahliaWitt avatar DahliaWitt commented on May 14, 2024 1

I created a quick demo project that reproduces the bug: https://github.com/DrakeWitt/enact-virtuallist-bug-demo

from enact.

seunghoh avatar seunghoh commented on May 14, 2024

Hi @DrakeWitt Thanks for reporting the issue with detailed information! We will look at it shortly. Can you share your code so that we can reproduce it?

from enact.

0x64 avatar 0x64 commented on May 14, 2024

@DrakeWitt Good catch! 👍 The issue is reproduced with your sample and we're finding what actually happened inside.

from enact.

0x64 avatar 0x64 commented on May 14, 2024

@DrakeWitt
Due to non-integer rectangle boundaries of focusable elements, there is some issue with choosing the next focus target on key down. We're finding a proper way to handle this and we will ship it in the next release. Until the next release, changing items smaller (at least 1px) inside lists could be helpful.
I found you don't pass rest params in itemRenderer function. It looks not an actual case but a sample code, but I left some notes for sure. If rest params are not passed, focus navigation inside lists does not work well. Refer enactjs.com

from enact.

0x64 avatar 0x64 commented on May 14, 2024

This issue is resolved in #2997 and will be shipped in the next release.

Note that the issue occurs when a spottable element is NOT contained inside a spotlight container. Normally this does not happen since app developers make elements' size fit into a container. In the reproducing sample, elements' size is calculated with a floating-point parameter to match with viewport size and becomes slightly larger than container size. The fixed code is to allow an epsilon (under one px) on comparison between a container and an element to support various size units which lead to floating-point calculation and size mismatching.

from enact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.