Skip to content

Commit

Permalink
Update demo page in doc site 💞
Browse files Browse the repository at this point in the history
  • Loading branch information
willnguyen1312 committed Nov 13, 2023
1 parent 4d2d7a0 commit c406541
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/createZoomImageMove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export function createZoomImageMove(container: HTMLElement, options: ZoomImageMo
function handlePointerLeave() {
zoomedImg.style.display = "none"
zoomedImg.style.transform = "none"
if (disableScrollLock) enableScroll()
if (!disableScrollLock) enableScroll()
}

const calculatePositionX = (newPositionX: number) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/HomePageShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ watch(
<p>Hover inside the image to see zoom effect</p>
<div
ref="imageHoverContainerRef"
class="relative mt-1 flex h-[200px] w-[200px] items-start sm:h-[250px] sm:w-[250px] lg:h-[300px] lg:w-[300px]"
class="relative mt-1 flex h-[200px] w-[133.33px] items-start sm:h-[250px] sm:w-[166.66px] lg:h-[300px] lg:w-[200px]"
>
<img class="h-full w-full" alt="Small Pic" src="/sample.avif" />
<div ref="zoomTargetRef" class="absolute left-[220px] sm:left-[300px] lg:left-[350px]"></div>
Expand Down

0 comments on commit c406541

Please sign in to comment.