You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to define (in a part of https://wicg.github.io/spatial-navigation/ that will become a Pull Requestion against UI-Events when it matures) what happens when you press keys, and more specifically arrow keys, I've found myself wanting to refer to an algorithm that defines how to perform a scroll in a given direction without an explicit position. I thought I'd find it in CSSOM-View, but it wasn't there.
For now, I've rolled my own, but this feels like it does belong in CSSOM-VIEW.
The text was updated successfully, but these errors were encountered:
I agree that we probably need to define what happens when user presses keys. I could find some default behavior of arrow keys and enter key operated in major browsers below.
arrow keys
buttons (move the focus into other enighboring radio button)
textarea (move the cursor in the direction)
general document (scroll the page, if it overflows)
However, I'm not sure how to define the things rolled by @frivoal. It seems a natural result when scrolling in a given direction without an explicit position. If I change the default wheel offset in the control panel in Win10 and handle the wheel in the browser, it works as the operating system's settings. It's not for the browser, but for the underlying platform. The scroll offset change by the arrow key input would be different with the wheel case, but it also seems a natural result and not changeable by web engine as well as authors. I wonder how and where we could use the algorithm.
While trying to define (in a part of https://wicg.github.io/spatial-navigation/ that will become a Pull Requestion against UI-Events when it matures) what happens when you press keys, and more specifically arrow keys, I've found myself wanting to refer to an algorithm that defines how to perform a scroll in a given direction without an explicit position. I thought I'd find it in CSSOM-View, but it wasn't there.
For now, I've rolled my own, but this feels like it does belong in CSSOM-VIEW.
The text was updated successfully, but these errors were encountered: