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:
parent
7934fa24a2
commit
d11a3b9683
@ -1294,7 +1294,10 @@ class CanvasModel with ChangeNotifier {
|
||||
if (refreshMousePos) {
|
||||
parent.target?.inputModel.refreshMousePos();
|
||||
}
|
||||
updateScrollPercent();
|
||||
if (style == kRemoteViewStyleOriginal &&
|
||||
_scrollStyle == ScrollStyle.scrollbar) {
|
||||
updateScrollPercent();
|
||||
}
|
||||
}
|
||||
|
||||
updateScrollStyle() async {
|
||||
|
Loading…
x
Reference in New Issue
Block a user