Releases: rafgraph/react-interactive
Releases · rafgraph/react-interactive
v0.5.1
v0.5.0
v0.4.1
v0.4.0
v0.3.1
v0.3.0
- Make
focusFromTab
,focusFromMouse
andfocusFromTouch
their own states in the state machine and remove thefocusFrom
API. - Remove the
focusFrom
key from the state object, and make the value of thefocus
key one offalse
,'tab'
,'mouse'
, or'touch'
. - Change to allow taps while touching some place else on the screen.
- Add
extraTouchNoTap
option to prevent taps while touching someplace else on the screen.
v0.2.0
- Implement input tracker and notifier to fix several bugs caused by the browser not firing the necessary events.
- Remove
onMouseClick
,onTap
andonEnterKey
callbacks in favor of passing in a second argument with the click type to theonClick
callback, e.g.onClick={(event, clickType) => {...}}
, whereclickType
is one of'mouseClick'
,'tapClick'
or'keyClick'
. - Remove individual state
onEnter
andonLeave
callbacks (useonStateChange
instead). - Remove
focusFromOnly
option from thefocusFrom
API. - Remove
useBrowserWebkitTapHighlightColor
option in favor of letting the browser fully manage what it considers to be a click from a touch interaction when there's noactive
andtouchActive
prop. - Add
touchActiveTapOnly
option to only remain in thetouchActive
state while a tap is possible. - Add
stylePriority
option to specify what iState styles take precedence over focus state styles when merged. - Add
focusToggleOff
option to turn off focus toggling. - Add
role="button"
if there is anonClick
prop without a role prop, and it's not clear what the role of the element is (i.e. it's not for user input, a link, or an area tag).