Skip to content

Commit

Permalink
Disable zoom on scroll for Image Preview
Browse files Browse the repository at this point in the history
  • Loading branch information
subinasr committed Jul 5, 2024
1 parent 35b17c4 commit e1994d5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ function TableAndVisualItem(props: Props) {
<ImagePreview
alt="Preview Image"
src={attachment.filePreview?.url ?? undefined}
disableZoomOnScroll
/>
</Container>
);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@mapbox/mapbox-gl-draw": "^1.3.0",
"@sentry/react": "^6.16.0",
"@sentry/tracing": "^6.16.0",
"@the-deep/deep-ui": "2.0.7-beta.1",
"@the-deep/deep-ui": "2.0.7-beta.2",
"@the-deep/reporting-module-components": "1.1.0-beta.11",
"@togglecorp/fujs": "^2.0.0",
"@togglecorp/re-map": "^0.1.3",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3204,10 +3204,10 @@
content-type "^1.0.5"
tslib "^2.6.1"

"@the-deep/deep-ui@2.0.7-beta.1":
version "2.0.7-beta.1"
resolved "https://registry.yarnpkg.com/@the-deep/deep-ui/-/deep-ui-2.0.7-beta.1.tgz#4de5f83038db70c03e1eb614cecaa4b5980c8b71"
integrity sha512-qmWobVv27cnHCNpX0axidX68L/cGurUHUosMMXJdGjkhnlrEUPO0xZ1HHLgQLHTs3e3SnoZZoHW5jj6rH5SaUA==
"@the-deep/deep-ui@2.0.7-beta.2":
version "2.0.7-beta.2"
resolved "https://registry.yarnpkg.com/@the-deep/deep-ui/-/deep-ui-2.0.7-beta.2.tgz#2c81517e52f838b2670930689b28276e3a493504"
integrity sha512-s5y1bq7aquyRaFUEW5ceeNQisPou0QTtYbSAp9WNlmXKZQ/+s9Y7dIYa5zudiHVi1sIC425F570UPKtgJ86e4g==
dependencies:
"@tanem/svg-injector" "^10.1.14"
"@togglecorp/fujs" "^1.9.3"
Expand Down

0 comments on commit e1994d5

Please sign in to comment.