Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Commit

Permalink
Update event types for new fabric.js release
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixHenninger committed Feb 22, 2018
1 parent d586fe0 commit 916e5f8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ export default class FabricCanvas extends Component {
})

// Pass on further useful events -------------------------------------------
// TODO: Change to 'selection:created' as soon as supported in fabric.js
this.canvas.on('object:selected', this.props.updateSelectionHandler)
this.canvas.on('selection:created', this.props.updateSelectionHandler)
this.canvas.on('selection:updated', this.props.updateSelectionHandler)
this.canvas.on('selection:cleared', this.props.clearSelectionHandler)

// Grid --------------------------------------------------------------------
Expand Down

0 comments on commit 916e5f8

Please sign in to comment.