Skip to content

Commit

Permalink
修正移动端在rax类的框架中图片宽高单位被转换问题
Browse files Browse the repository at this point in the history
  • Loading branch information
iSept committed May 10, 2024
1 parent db3d9e3 commit 08d83d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-photo-view/src/PhotoBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,8 @@ export default function PhotoBox({
onTouchStart: isTouchDevice ? handleTouchStart : undefined,
onWheel: handleWheel,
style: {
width: currentWidth,
height: currentHeight,
width: currentWidth + 'px',
height: currentHeight + 'px',
opacity,
objectFit: easingMode === 4 ? undefined : FIT,
transform: rotate ? `rotate(${rotate}deg)` : undefined,
Expand Down

0 comments on commit 08d83d9

Please sign in to comment.