Skip to content

Commit dd0e6c3

Browse files
authored
refact: mouse scroll, remote tabs (rustdesk#11708)
Signed-off-by: fufesou <linlong1266@gmail.com>
1 parent 54cf1c8 commit dd0e6c3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

flutter/lib/desktop/widgets/tabbar_widget.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,9 @@ class _DesktopTabState extends State<DesktopTab>
651651
controller.state.value.scrollController;
652652
if (!sc.canScroll) return;
653653
_scrollDebounce.call(() {
654-
sc.animateTo(sc.offset + e.scrollDelta.dy,
654+
double adjust = 2.5;
655+
sc.animateTo(
656+
sc.offset + e.scrollDelta.dy * adjust,
655657
duration: Duration(milliseconds: 200),
656658
curve: Curves.ease);
657659
});

0 commit comments

Comments
 (0)