(selectedSnapshotIndex)
| 14545 | this.props.onSnapshotsChanged && this.props.onSnapshotsChanged(snapshots); |
| 14546 | } |
| 14547 | scrollSnapshotIntoView(selectedSnapshotIndex) { |
| 14548 | clearTimeout(this.scrollSnapshotTimer); |
| 14549 | if (this.state.sidebarClosed) return; |
| 14550 | this.scrollSnapshotTimer = setTimeout(()=>{ |
| 14551 | const selectedSnapshotElement = this.div.querySelector(`.snapshot:nth-child(${selectedSnapshotIndex + 1})`); |
| 14552 | if (selectedSnapshotElement) selectedSnapshotElement.scrollIntoView({ |
| 14553 | behavior: "smooth", |
| 14554 | block: "nearest" |
| 14555 | }); |
| 14556 | }, 500); |
| 14557 | } |
| 14558 | componentDidMount() { |
| 14559 | if (this.props.mounted) this.props.mounted(this); |
| 14560 | } |
no outgoing calls
no test coverage detected