Skip to content

Commit

Permalink
fix(image-lightbox): fix zoom on mouse wheel cursor position
Browse files Browse the repository at this point in the history
  • Loading branch information
gcornut committed Sep 16, 2024
1 parent 13894be commit 35dd030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `useImageLightbox`: update props each time the lightbox opens.
- `ImageLightbox`: fix reset zoom scale when switching to the first item.
- `ButtonGroup`: fixed border radius style with single button or `.visually-hidden` children.
- `ImageLightbox`: fix zoom center based on mouse position on mouse wheel zoom.

## [3.9.0][] - 2024-09-03

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ export function usePointerZoom(

// Update scale on next frame (focused on the mouse position)
updateScaleOnNextFrame(newScale, {
x: event.pageX,
y: event.pageY,
x: event.clientX,
y: event.clientY,
});
}

Expand Down

0 comments on commit 35dd030

Please sign in to comment.