mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-09-12 23:41:02 +03:00
fix(flutter): check the cursor height against the min cursor size
`_checkUpdateScale` computed the scaled height from `width`, so the min-size clamp never looked at the height. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01K8HSHTEHo27mDcJXVyVfSP
This commit is contained in:
@@ -2884,7 +2884,7 @@ class CursorData {
|
|||||||
if (scale != 1.0) {
|
if (scale != 1.0) {
|
||||||
// Update data if scale changed.
|
// Update data if scale changed.
|
||||||
final tgtWidth = (width * scale).toInt();
|
final tgtWidth = (width * scale).toInt();
|
||||||
final tgtHeight = (width * scale).toInt();
|
final tgtHeight = (height * scale).toInt();
|
||||||
if (tgtWidth < kMinCursorSize || tgtHeight < kMinCursorSize) {
|
if (tgtWidth < kMinCursorSize || tgtHeight < kMinCursorSize) {
|
||||||
double sw = kMinCursorSize.toDouble() / width;
|
double sw = kMinCursorSize.toDouble() / width;
|
||||||
double sh = kMinCursorSize.toDouble() / height;
|
double sh = kMinCursorSize.toDouble() / height;
|
||||||
|
|||||||
Reference in New Issue
Block a user