key-focus time limit

key-focus time limit

mustafamondmustafamond Posts: 40Questions: 11Answers: 0

I am successfully using key-focus to display additional details about the focused row in a DIV tag below the table - the table is set to scrollable. Since one can scroll through the table quickly and each move to a new row is a new focus event, the refreshing of the DIV below can get behind. Is there a way to say "If the focus stays on a particular cell for less than 50ms, do not trigger the bound function"? So basically, if you are quickly scrolling by holding the down arrow key and each item during this time gets focus for only 20ms, the bound function does not attempt to run. Once you take your finger off the down arrow and focus lasts for more than 50ms, then the function runs and the DIV below updates based on the current row.

Thank you

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.