Skip to content

Releases: ethanselzer/react-cursor-position

Stop Touch Move Propagation After Activation

30 Sep 07:12
Compare
Choose a tag to compare

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

08 Sep 17:36
Compare
Choose a tag to compare

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

02 Sep 05:41
Compare
Choose a tag to compare

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

09 Jun 05:27
Compare
Choose a tag to compare

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

17 May 04:30
Compare
Choose a tag to compare

Release Notes

  • Extract document relative cursor position algorithm from component into library
  • Update dependencies

Correct Constants Import Path

28 Feb 06:03
Compare
Choose a tag to compare

Release Notes

  • Correct Constans import path
  • Special thanks to @tekbreak for reporting the issue!
  • Fixes #21

Introduce shouldStopTouchMovePropagation to Props API

20 Jan 19:34
Compare
Choose a tag to compare

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

10 Dec 05:29
Compare
Choose a tag to compare

Release Notes

  • Support enabling and disabling without requiring a remount.
  • Fixes #14
  • Special thanks to @slapbox for suggesting this feature!

Support React 16

05 Oct 05:00
Compare
Choose a tag to compare

Release Notes

Support React 16
Upgrade dependencies

Support Delayed Hover Activation and Environment Detection

25 Jul 16:57
Compare
Choose a tag to compare

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