mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-16 14:14:01 +08:00
improve horizontal touch slop
Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user