Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Releases: NoriginMedia/react-spatial-navigation

Improvements for Throttle behaviour

10 Jul 08:33
Compare
Choose a tag to compare

Fixed

  • Key up triggers .cancel() instead of .flush()

Added

  • Throttling now applies leading/trailing options

Throttle Improvements

05 Jul 13:27
Compare
Choose a tag to compare

Fixed:

  • Throttling is now only applied if the throttle option supplied was greater than 0
    Added:
  • Key up now flushes any throttled input

Added onArrowPress prop

02 Jul 14:07
Compare
Choose a tag to compare

Added onArrowPress property, which enables to add a custom behaviour when arrows are pressed and can prevent the default navigation.

Fixes for lastFocusedChildKey

01 Jul 09:06
Compare
Choose a tag to compare

Previously lastFocusedChildKey was saved for the parent only during the directional navigation, but not when you manually set focus to some another component with setFocus. Now is saved for all parents on any navigation event .

Throttle

26 Jun 08:30
Compare
Choose a tag to compare

In this release we added Throttle config prop to be able to throttle key press events.

Added support for Native environments

21 Jun 08:38
Compare
Choose a tag to compare

In this release we added support for native environments. This service might be used in the "sync" mode, to trigger "focused" state changes after native engine sets the focus to some elements. In this mode the only way to set the focus is to use stealFocus method. setFocus method is disabled. Also certain "imperative" features like layout measurements, coordinates calculations etc. are disabled because the native engine is the only one who decides what to focus. Please read the documentation for examples of usage in Native mode.

Patch: improvements for adjacent elements priority

10 May 12:25
Compare
Choose a tag to compare

Small improvement to apply adjacent slice priority to the elements with zero distance from the current one.

New navigation algorithm

10 May 11:19
Compare
Choose a tag to compare

In this release we improved the navigation algorithm and made it even smarter. Also we removed the "propagateFocus" prop since it was always used for items with focusable children in most of the cases anyway.

Added Preferred Child focus key

26 Apr 09:39
Compare
Choose a tag to compare
  • Added preferredChildFocusKey property to set focus on a specific component during focus propagation
  • Save parent lastFocusedChildKey when a new component is focused

Fixed implicit logic for setFocus()

08 Apr 14:51
Compare
Choose a tag to compare

Before if we are setting focus and explicitly specifying focus key, if that component didn't exist in the focusableComponents, it was falling back to own focus key. This logic is not necessary.