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

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-12-04 23:03:22 +08:00
committed by GitHub
parent 7934fa24a2
commit d11a3b9683

View File

@@ -1294,7 +1294,10 @@ class CanvasModel with ChangeNotifier {
if (refreshMousePos) {
parent.target?.inputModel.refreshMousePos();
}
updateScrollPercent();
if (style == kRemoteViewStyleOriginal &&
_scrollStyle == ScrollStyle.scrollbar) {
updateScrollPercent();
}
}
updateScrollStyle() async {