Skip to content

Commit

Permalink
Fix image scaling bug (3)
Browse files Browse the repository at this point in the history
  • Loading branch information
hbl917070 committed Sep 2, 2024
1 parent d28f361 commit 18ee509
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Www/ts/Tiefseeview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2849,7 +2849,7 @@ class Tiefseeview {
);

}
else if (_scale / dpizoom3 > bigimgTemp.scale && bigimgTemp.scale < 1) {
else if (_scale > bigimgTemp.scale && bigimgTemp.scale < 1) {

// console.log("drawImage直接渲染 原圖尚未載入完成");
sx = sx * bigimgTemp.scale
Expand All @@ -2863,7 +2863,7 @@ class Tiefseeview {
);

}
else if (_scale / dpizoom3 >= 1) {
else if (_scale >= 1) {

// console.log("drawImage直接渲染");
sx = sx * bigimgTemp.scale
Expand Down

0 comments on commit 18ee509

Please sign in to comment.