Skip to content

Commit

Permalink
Merge pull request #2712 from gluestack/release/[email protected]
Browse files Browse the repository at this point in the history
Release/image [email protected]
  • Loading branch information
gluestackadmin authored Jan 14, 2025
2 parents 6a41b4c + 91acb94 commit 2a936de
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const BackdropStyle = tva({
});

const CloseButtonStyle = tva({
base: 'absolute top-4 right-4 z-10 rounded-full w-8 h-8 justify-center items-center cursor-pointer hover:bg-primary-500 transition-all duration-300',
base: 'absolute top-4 right-4 z-10 rounded-full w-8 h-8 justify-center items-center cursor-pointer data-[hover=true]:bg-primary-500 transition-all duration-300',
});

const UIImageViewer = createImageViewer({
Expand Down
6 changes: 6 additions & 0 deletions packages/unstyled/image-viewer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @gluestack-ui/image-viewer

## 0.0.10

### Patch Changes

- fix: updated translateY breakpoint value for onClose

## 0.0.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/unstyled/image-viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gluestack-ui/image-viewer",
"version": "0.0.9",
"version": "0.0.10",
"main": "lib/index",
"module": "lib/index",
"types": "lib/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/unstyled/image-viewer/src/ImageViewerContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const ImageViewerContent = (
})
.onEnd((event: any) => {
if (scale.value <= 1) {
if (Math.abs(event.translationY) > SCREEN_HEIGHT * 0.005) {
if (Math.abs(event.translationY) > SCREEN_HEIGHT * 0.03) {
runOnJS(onClose)();
}
}
Expand Down

0 comments on commit 2a936de

Please sign in to comment.