mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-23 11:03:39 +00:00
Open image zoon viewer on click for any image size
This commit is contained in:
@@ -55,9 +55,6 @@ export function ZoomImage(
|
||||
if (!mediaQueryList.matches) {
|
||||
// Don't allow zooming on mobile
|
||||
setZoomable(false);
|
||||
} else if (resizeObserver && imageWidth && viewWidth && imageWidth <= viewWidth) {
|
||||
// Image can't be zoomed if it's already rendered as it's largest size
|
||||
setZoomable(false);
|
||||
} else {
|
||||
setZoomable(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user