better adjustForKeyboard
This commit is contained in:
parent
af4f772b8a
commit
8902672b30
@ -143,7 +143,7 @@ class FfiModel with ChangeNotifier {
|
|||||||
() async {
|
() async {
|
||||||
try {
|
try {
|
||||||
/*
|
/*
|
||||||
final ref = frame.ref;
|
final ref = frame.ref;
|
||||||
final bytes = Uint8List.sublistView(ref.data.asTypedList(ref.len));
|
final bytes = Uint8List.sublistView(ref.data.asTypedList(ref.len));
|
||||||
await _audioPlayer.feedFromStream(bytes);
|
await _audioPlayer.feedFromStream(bytes);
|
||||||
*/
|
*/
|
||||||
@ -315,7 +315,7 @@ class CursorModel with ChangeNotifier {
|
|||||||
final s = FFI.canvasModel.scale;
|
final s = FFI.canvasModel.scale;
|
||||||
final thresh = 120;
|
final thresh = 120;
|
||||||
var h = (_y - getVisibleRect().top) * s; // local physical display height
|
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) {
|
void updatePan(double dx, double dy) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user