Skip to content

Commit

Permalink
Merge pull request #181 from iSept/dev
Browse files Browse the repository at this point in the history
移动端在rax类的框架中图片宽高单位被转换问题
  • Loading branch information
MinJieLiu authored Jun 10, 2024
2 parents 83e64f8 + 08d83d9 commit d4c437c
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 d4c437c

Please sign in to comment.