From 8902672b307c66edbe77d01be4e1f6d41e78be75 Mon Sep 17 00:00:00 2001 From: open-trade Date: Fri, 27 Nov 2020 12:05:23 +0800 Subject: [PATCH] better adjustForKeyboard --- flutter_hbb/lib/model.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter_hbb/lib/model.dart b/flutter_hbb/lib/model.dart index 376d15df1..8ed3330bb 100644 --- a/flutter_hbb/lib/model.dart +++ b/flutter_hbb/lib/model.dart @@ -143,7 +143,7 @@ class FfiModel with ChangeNotifier { () async { try { /* - final ref = frame.ref; + final ref = frame.ref; final bytes = Uint8List.sublistView(ref.data.asTypedList(ref.len)); await _audioPlayer.feedFromStream(bytes); */ @@ -315,7 +315,7 @@ class CursorModel with ChangeNotifier { final s = FFI.canvasModel.scale; final thresh = 120; var h = (_y - getVisibleRect().top) * s; // local physical display height - return h > thresh ? h - thresh : 0; + return h - thresh; } void updatePan(double dx, double dy) {