Releases: ethanselzer/react-cursor-position
Stop Touch Move Propagation After Activation
Touchmove propagation is only stopped when shouldStopTouchMovePropagation is set. The concept of the change, captured in this release, is when shouldStopTouchMovePropagation is set, stop touchmove propagation only when react-cursor-position is active. When react-cursor-position is active it should "own" touchmove and not propagate it to parent components. This is useful when integrating with react-slick.
V3.0.2 - Do not declare isReactComponent
With the React 16.5.0 release, this component's use of isReactComponent breaks React's shouldConstruct check. Here is a more detailed explanation of the problem: facebook/react#13580
See #25 for details
v3.0.0 - Introduce Activation by Tap and Click
Version 3.0.0
Introduces activation by tap and click. Default activation interaction remains press, in the touch environment, and hover, in the mouse environment.
Fixes Issue #24
New Props
activationInteractionMouse
activationInteractionTouch
tapDurationInMs
tapMoveThreshold
Breaking Changes
isActivatedOnTouch: true
becomes activationInteractionTouch: INTERACTIONS.TOUCH
pressDuration
becomes pressDurationInMs
See examples for details
Introduce Reset Method
Invoking the reset method instructs react-cursor-position to recalculate its position relative to the page.
Use cases include a scenario where react-cursor-position is contained by a scrolling element and the element is scrolled to a new position, during an active session. In this scenario, react-cursor-position coordinates would be incorrect. Invoking reset corrects this issue.
See demo example for details.
May Fix #22
Refactor + Update Dependencies
Release Notes
- Extract document relative cursor position algorithm from component into library
- Update dependencies
Correct Constants Import Path
Introduce shouldStopTouchMovePropagation to Props API
Release Notes
- Optionally stop propagation of touchmove event when react-cursor-position is active
- May be used to address a possible issue when integrating with other libraries that also monitor touchmove
Support Enabling and Disabling
Support React 16
Release Notes
Support React 16
Upgrade dependencies
Support Delayed Hover Activation and Environment Detection
Release Notes
- Support delayed hover and hover-off
- Support environment (mouse or touch) detection
- Correct fatal error when child component returns null or false
- Guard against mouse emulation by touchscreen devices
- Update dependencies