(offset)
| 204 | } |
| 205 | |
| 206 | setScroll(offset) { |
| 207 | const { scrollParent } = this; |
| 208 | const { axis } = this.props; |
| 209 | offset += this.getOffset(this.getEl()); |
| 210 | if (scrollParent === window) return window.scrollTo(0, offset); |
| 211 | |
| 212 | offset -= this.getOffset(this.scrollParent); |
| 213 | scrollParent[SCROLL_START_KEYS[axis]] = offset; |
| 214 | } |
| 215 | |
| 216 | getScrollSize() { |
| 217 | const { scrollParent } = this; |
no test coverage detected