diff --git a/lib/frontend/terminal_view.dart b/lib/frontend/terminal_view.dart index cbb5428b..72f64c53 100644 --- a/lib/frontend/terminal_view.dart +++ b/lib/frontend/terminal_view.dart @@ -196,7 +196,7 @@ class _TerminalViewState extends State { // with widgets such as Scrollbar. return NotificationListener( onNotification: (notification) { - onScroll(notification.metrics.pixels); + new Future.microtask(() => onScroll(notification.metrics.pixels)); return false; }, child: ScrollConfiguration(