mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 19:17:58 +00:00
refact: mouse scroll, remote tabs (#11708)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user