opt: custom scroll for better scroll and add trackpad support

This commit is contained in:
Kingtous
2022-09-19 21:09:54 +08:00
parent e1ab01a97f
commit df5a2ab556
5 changed files with 16 additions and 5 deletions

View File

@@ -16,7 +16,9 @@ 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 = 10.0;
const kDefaultScrollAmountMultiplier = 5.0;
const kDefaultScrollDuration = Duration(milliseconds: 50);
const kDefaultMouseWhellThrottleDuration = Duration(milliseconds: 50);
const kFullScreenEdgeSize = 1.0;
const kWindowEdgeSize = 4.0;