better adjustForKeyboard
This commit is contained in:
parent
af4f772b8a
commit
8902672b30
@ -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