10 lines
153 B
TypeScript
10 lines
153 B
TypeScript
import { Command } from '../types'
|
|
|
|
export default (): Command => ({ tr, dispatch }) => {
|
|
if (dispatch) {
|
|
tr.scrollIntoView()
|
|
}
|
|
|
|
return true
|
|
}
|