mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-17 01:00:49 +08:00
refact: mouse scroll, remote tabs (#11708)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
54cf1c8225
commit
dd0e6c31ba
@ -651,7 +651,9 @@ class _DesktopTabState extends State<DesktopTab>
|
|||||||
controller.state.value.scrollController;
|
controller.state.value.scrollController;
|
||||||
if (!sc.canScroll) return;
|
if (!sc.canScroll) return;
|
||||||
_scrollDebounce.call(() {
|
_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),
|
duration: Duration(milliseconds: 200),
|
||||||
curve: Curves.ease);
|
curve: Curves.ease);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user