scroll to top/bottom
This commit is contained in:
+20
@@ -353,6 +353,16 @@ final List<ToolbarButtonDefinition> toolbarButtonRegistry = [
|
||||
.pageUp();
|
||||
}
|
||||
},
|
||||
onLongPress: scope.isPreview
|
||||
? () {}
|
||||
: () async {
|
||||
final tabId = scope.selectedTabId;
|
||||
if (tabId != null) {
|
||||
await ref
|
||||
.read(tabSessionProvider(tabId: tabId).notifier)
|
||||
.scrollToTop();
|
||||
}
|
||||
},
|
||||
icon: const Icon(MdiIcons.chevronDoubleUp),
|
||||
);
|
||||
},
|
||||
@@ -373,6 +383,16 @@ final List<ToolbarButtonDefinition> toolbarButtonRegistry = [
|
||||
.pageDown();
|
||||
}
|
||||
},
|
||||
onLongPress: scope.isPreview
|
||||
? () {}
|
||||
: () async {
|
||||
final tabId = scope.selectedTabId;
|
||||
if (tabId != null) {
|
||||
await ref
|
||||
.read(tabSessionProvider(tabId: tabId).notifier)
|
||||
.scrollToBottom();
|
||||
}
|
||||
},
|
||||
icon: const Icon(MdiIcons.chevronDoubleDown),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user