Skip to content

Commit

Permalink
Clarify behaviour in case of overlaps/overlays (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiningTrapez committed Jan 22, 2024
1 parent 8239aa4 commit 458fb82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ By default, LRUD will measure to all candidates that are in the direction to mov

This threshold can be adjusted on a per-element basis with the `data-lrud-overlap-threshold` attribute, as a float from 0.0 to 1.0. An overlap of 0.0 will make a candidate only be considered if it is located _entirely_ in the direction of movement.

Please also note that LRUD does not consider the Z Axis, which can cause surprising results with elements that are overlapped in this way, including in the case of full screen overlays on existing UIs. The above attribute can help alleviate this issue.

## Containers

Focusables can be wrapped in containers. Containers can keep track of the last
Expand Down

0 comments on commit 458fb82

Please sign in to comment.