improve horizontal touch slop

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-15 10:22:29 +08:00
parent 2c511d1a2c
commit ce706d4732
3 changed files with 27 additions and 12 deletions

View File

@@ -1,6 +1,8 @@
import 'dart:io';
import 'dart:math' show pow, sqrt;
import 'package:PiliPlus/common/widgets/gesture/horizontal_drag_gesture_recognizer.dart'
show deviceTouchSlop;
import 'package:PiliPlus/common/widgets/pair.dart';
import 'package:PiliPlus/http/constants.dart';
import 'package:PiliPlus/models/common/bar_hide_type.dart';
@@ -967,8 +969,10 @@ abstract final class Pref {
static bool get showDynDispute =>
_setting.get(SettingBoxKey.showDynDispute, defaultValue: false);
static double get touchSlopH =>
_setting.get(SettingBoxKey.touchSlopH, defaultValue: 24.0);
static double get touchSlopH => _setting.get(
SettingBoxKey.touchSlopH,
defaultValue: deviceTouchSlop + 6.0,
);
static bool get saveReply =>
_setting.get(SettingBoxKey.saveReply, defaultValue: true);