Skip to content

Commit

Permalink
Fix WindowScroller scrollElement prop types for window (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Jan 2, 2018
1 parent e4d9aed commit bb05a52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/WindowScroller/WindowScroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ type Props = {
onScroll: (params: {scrollLeft: number, scrollTop: number}) => void,

/** Element to attach scroll event listeners. Defaults to window. */
scrollElement: ?Element,

scrollElement: ?(typeof window | Element),
/**
* Wait this amount of time after the last scroll event before resetting child `pointer-events`.
*/
Expand Down

0 comments on commit bb05a52

Please sign in to comment.