Skip to content

Commit e11b88c

Browse files
committed
fix forgotten callback
1 parent dfabc57 commit e11b88c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

hocs/withProjectedPosition.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ export default ({ throttleMs = 33 } = {}) => C =>
5959
projectionResult: null,
6060
});
6161
}
62+
if (this.props.onProjectedPosition) {
63+
this.props.onProjectedPosition(result);
64+
}
6265
}
6366
}
6467

@@ -88,7 +91,6 @@ export default ({ throttleMs = 33 } = {}) => C =>
8891
render() {
8992
return (
9093
<C
91-
onProjectedPosition={this.onProjectedPosition}
9294
positionProjected={this.state.positionProjected}
9395
projectionResult={this.state.projectionResult}
9496
{...this.props}

0 commit comments

Comments
 (0)