refact: mouse scroll, remote tabs (#11708)

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2025-05-11 13:32:36 +08:00 committed by GitHub
parent 54cf1c8225
commit dd0e6c31ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -651,7 +651,9 @@ class _DesktopTabState extends State<DesktopTab>
controller.state.value.scrollController;
if (!sc.canScroll) return;
_scrollDebounce.call(() {
sc.animateTo(sc.offset + e.scrollDelta.dy,
double adjust = 2.5;
sc.animateTo(
sc.offset + e.scrollDelta.dy * adjust,
duration: Duration(milliseconds: 200),
curve: Curves.ease);
});