Skip to content

Commit

Permalink
fix(extension): 修复「小地图鼠标放上去会出现浮层展示」bug(#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
boyongjiong authored and wumail committed Nov 21, 2023
1 parent 9e1a2c9 commit 0a47b2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/extension/src/components/mini-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ class MiniMap {
// 5. 取比例最小的值,将渲染的画布缩小对应比例。
const innerStyle = this.miniMapWrap.firstChild.style;
const scale = Math.min(realWidthScale, realHeightScale);
innerStyle.pointerEvents = 'none';
innerStyle.transform = `matrix(${scale}, 0, 0, ${scale}, 0, 0)`;
innerStyle.transformOrigin = 'left top';
innerStyle.height = `${bottom - Math.min(top, 0)}px`;
Expand Down

0 comments on commit 0a47b2d

Please sign in to comment.