Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
e1ab01a9
Commit
e1ab01a9
authored
Sep 19, 2022
by
Kingtous
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opt: use custom scroll feature
parent
e0d759c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
consts.dart
flutter/lib/consts.dart
+1
-1
peer_widget.dart
flutter/lib/desktop/widgets/peer_widget.dart
+1
-0
scroll_wrapper.dart
flutter/lib/desktop/widgets/scroll_wrapper.dart
+1
-1
No files found.
flutter/lib/consts.dart
View file @
e1ab01a9
...
...
@@ -16,7 +16,7 @@ const int kDesktopDefaultDisplayWidth = 1080;
const
int
kDesktopDefaultDisplayHeight
=
720
;
/// [kDefaultScrollAmountMultiplier] indicates how many rows can be scrolled after a minimum scroll action of mouse
const
kDefaultScrollAmountMultiplier
=
3
.0
;
const
kDefaultScrollAmountMultiplier
=
10
.0
;
const
kFullScreenEdgeSize
=
1.0
;
const
kWindowEdgeSize
=
4.0
;
...
...
flutter/lib/desktop/widgets/peer_widget.dart
View file @
e1ab01a9
...
...
@@ -89,6 +89,7 @@ class _PeerWidgetState extends State<_PeerWidget> with WindowListener {
:
DesktopScrollWrapper
(
scrollController:
_scrollController
,
child:
SingleChildScrollView
(
physics:
const
NeverScrollableScrollPhysics
(),
controller:
_scrollController
,
child:
ObxValue
<
RxString
>((
searchText
)
{
return
FutureBuilder
<
List
<
Peer
>>(
...
...
flutter/lib/desktop/widgets/scroll_wrapper.dart
View file @
e1ab01a9
...
...
@@ -13,7 +13,7 @@ class DesktopScrollWrapper extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
return
ImprovedScrolling
(
scrollController:
scrollController
,
enableCustomMouseWheelScrolling:
fals
e
,
enableCustomMouseWheelScrolling:
tru
e
,
customMouseWheelScrollConfig:
const
CustomMouseWheelScrollConfig
(
scrollAmountMultiplier:
kDefaultScrollAmountMultiplier
),
child:
child
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment