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
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue