Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

Refact, check current view style and scale mode, then update scroll percent (#6613)

fufesoud11a3b968391
diff --git a/flutter/lib/models/model.dart b/flutter/lib/models/model.dart
index 146679740..465260995 100644
--- a/flutter/lib/models/model.dart
+++ b/flutter/lib/models/model.dart
@@ -1294,7 +1294,10 @@ class CanvasModel with ChangeNotifier {
if (refreshMousePos) {
parent.target?.inputModel.refreshMousePos();
}
- updateScrollPercent();
+ if (style == kRemoteViewStyleOriginal &&
+ _scrollStyle == ScrollStyle.scrollbar) {
+ updateScrollPercent();
+ }
}
updateScrollStyle() async {