Skip to content

Support Touch and React 15.5

Compare
Choose a tag to compare
@ethanselzer ethanselzer released this 10 May 00:01
· 45 commits to master since this release

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
  }
}