ScrollToTop scrolls to the top.
()
| 169 | |
| 170 | // ScrollToTop scrolls to the top. |
| 171 | func (l *LogViewer) ScrollToTop() { |
| 172 | l.scrollPos = 0 |
| 173 | l.autoScroll = false |
| 174 | } |
| 175 | |
| 176 | // ScrollToBottom (exported) scrolls to the bottom. |
| 177 | func (l *LogViewer) ScrollToBottom() { |
no outgoing calls