Skip to content

Commit

Permalink
refactor: rename rest props
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed May 28, 2019
1 parent 0a33f38 commit 55df3f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PanZoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ class PanZoom extends React.Component<Props> {
onMouseDown,
onKeyDown,
onTouchStart,
...props
...restPassThroughProps
} = this.props
const { x, y, scale, rotate } = this.state
const { a, b, c, d, x: transformX, y: transformY} = this.getTransformMatrix(x, y, scale, rotate)
Expand All @@ -739,7 +739,7 @@ class PanZoom extends React.Component<Props> {
onKeyDown={this.onKeyDown}
onTouchStart={this.onTouchStart}
style={{ cursor: disabled ? 'initial' : 'pointer', ...style }}
{...props}
{...restPassThroughProps}
>
<div
ref={ref => this.dragContainer = ref}
Expand Down

0 comments on commit 55df3f7

Please sign in to comment.