UNPKG

@vanyapr/react-input-position

Version:

A React component that decorates it's children with mouse/touch position tracking, a status toggle fired by click/gesture events, and more.

71 lines (40 loc) 1.68 kB
# Changelog ## 1.3.2 (November 6th, 2020) - Fix undefined itemDimensions error. ## 1.3.1 (February 6th, 2020) - Added onActivate and onDeactivate props. Allows passing callbacks to be executed when component becomes active or inactive, respectively. ## 1.3.0 (January 28th, 2020) - Add mouseDownAllowOutside prop. Allows component to stay active and continue tracking positions while mouse is outside of the tracked area. Only applies to the "mouseDown" activation method. ## 1.2.1 (January 28th, 2020) - Fixed item position tracking while using mouse down activation method ## 1.2.0 (September 26th, 2019) - Added inversion of control props (onUpdate & overrideState) - Fix touchmove resetting position issue ## 1.1.7 (September 1st, 2019) - Fix non-passive touch event warnings ## 1.1.6 (August 8th, 2019) - Removed unused properties in mouse and touch event handlers - Removed unnecessary rounding in alignItemOnPosition - Added tests for index, utils, and event handlers - Added CircleCi - Added CircleCi and downloads badges to README ## 1.1.5 (May 16th, 2019) - Update README ## 1.1.4 (May 15th, 2019) - Updated github links ## 1.1.3 (March 14th, 2019) - Fixed bug when using negative item position limits. - Added CHANGELOG. ## 1.1.2 (March 12th, 2019) - Refactored code to improve readability and performance. ## 1.1.1 (January 14th, 2019) - Fixed typos in README. ## 1.1.0 (January 13th, 2019) - Added Align Item on Active Position feature. - Various code cleanup. ## 1.0.1 (January 10th, 2019) - Updated webpack-dev-server to remove vulnerability. - Updated README. - Added license. ## 1.0.0 (January 10th, 2019) - Initial public release.