Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvitalha committed Nov 29, 2017
1 parent a29285f commit fee3899
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/platform/reactnative/viewrenderer/ViewRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default class ViewRenderer extends BaseViewRenderer<any> {
}

private _onLayout(event: LayoutChangeEvent): void {
//Preventing layout thrashing in super fast scrolls where RN messes up onLayout event
const xDiff = Math.abs(this.props.x - event.nativeEvent.layout.x);
const yDiff = Math.abs(this.props.y - event.nativeEvent.layout.y);
if (xDiff < 1 && yDiff < 1 &&
Expand Down

0 comments on commit fee3899

Please sign in to comment.