Support Touch and React 15.5
Release Notes
Support touch
Support React 15.5
Update props API
Support ES modules
Support CJS modules
Improve UMD module
Upgrade dependencies
Update example site
Breaking Changes
Child component props change from:
{
cursorPosition: {
x: Number,
y: Number,
isOutside: Boolean
}
}
to:
{
isActive: Boolean,
isPositionOutside: Boolean,
position: {
x: Number,
y: Number
}
}
onCursorPositionChanged
becomes onPositionChanged
. It receives a parameter in the following shape:
{
isPositionOutside: Boolean,
position: {
x: Number,
y: Number
}
}
mapChildProps
now receives a parameter in the following shape:
{
isActive: Boolean,
isPositionOutside: Boolean,
position: {
x: Number,
y: Number
}
}