Skip to content

Commit

Permalink
v1.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
MinJieLiu committed Jun 10, 2024
1 parent d4c437c commit 3f53a44
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions packages/example/pages/docs/change-log.en-US.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: Change Log
---

## 1.2.6

1. fix: On mobile, the image width and height units are converted in the framework of the rax class

## 1.2.5

1. fix: Chrome version 125 or later cannot be dragged issue
Expand Down
4 changes: 4 additions & 0 deletions packages/example/pages/docs/change-log.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
title: Change Log
---

## 1.2.6

1. fix: 移动端在 rax 类的框架中图片宽高单位被转换问题

## 1.2.5

1. fix: Chrome 125 版本以上无法拖动的问题
Expand Down
2 changes: 1 addition & 1 deletion packages/react-photo-view/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-photo-view",
"version": "1.2.5",
"version": "1.2.6",
"description": "An exquisite React photo preview component",
"author": "MinJieLiu",
"license": "Apache-2.0",
Expand Down
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 + 'px',
height: currentHeight + 'px',
width: `${currentWidth}px`,
height: `${currentHeight}px`,
opacity,
objectFit: easingMode === 4 ? undefined : FIT,
transform: rotate ? `rotate(${rotate}deg)` : undefined,
Expand Down

0 comments on commit 3f53a44

Please sign in to comment.