Skip to content

Conversation

@imfing
Copy link
Owner

@imfing imfing commented Sep 10, 2025

  • Introduced CSS for image zoom overlay and image styling.
  • Implemented JavaScript for handling image zoom interactions, including overlay creation and close functionality.
  • Updated configuration to enable image zoom feature in site parameters.
  • Added partial for including image zoom assets in the layout.

Preview: https://deploy-preview-828--hugo-hextra.netlify.app/docs/guide/markdown/#images

- Introduced CSS for image zoom overlay and image styling.
- Implemented JavaScript for handling image zoom interactions, including overlay creation and close functionality.
- Updated configuration to enable image zoom feature in site parameters.
- Added partial for including image zoom assets in the layout.
@netlify
Copy link

netlify bot commented Sep 10, 2025

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit 2656973
🔍 Latest deploy log https://app.netlify.com/projects/hugo-hextra/deploys/68e2643c9ce37d00087c1487
😎 Deploy Preview https://deploy-preview-828--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@imfing imfing added this to the v0.12.0 milestone Sep 10, 2025
…ns and closing behavior

- Updated CSS for smoother transitions and added closing effects for the zoom overlay.
- Enhanced JavaScript to support dedicated closing transitions and improved event handling for dismissing the overlay.
- Removed unnecessary scroll lock and overflow styles for better user experience.
…tionality

- Added support for pinch gestures to enhance the zoom experience on touch devices.
- Implemented event listeners for pointer events to manage pinch start and end.
- Updated closing behavior to account for active pinch gestures, improving user interaction.
@ldez
Copy link
Contributor

ldez commented Sep 11, 2025

🤔 currently, this breaks the cards with images.

imfing and others added 4 commits September 11, 2025 23:00
…improved interactions

- Updated CSS to include loading indicators and refined transition effects for zoomed images.
- Enhanced JavaScript to manage image loading states, ensuring a smoother user experience during zoom interactions.
- Improved gesture handling for touch devices, including better management of pinch and drag events.
- Added `will-change: transform` to CSS for better performance during zoom.
- Enhanced JavaScript to support tap detection for closing the zoom overlay with minimal movement.
- Updated zoom behavior to ensure scaling occurs from the center of the overlay.
- Refined event handling to prevent unintended interactions and improve user experience.
- Updated logic to prevent dragging when a single touch is detected, improving tap detection accuracy.
- Adjusted event handling to ensure significant movement cancels tap only when necessary, enhancing user experience.
@imfing imfing marked this pull request as ready for review September 15, 2025 20:59
@imfing
Copy link
Owner Author

imfing commented Sep 15, 2025

bugbot run

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

- Introduced minimum and maximum scale limits for zoom functionality to prevent excessive scaling.
- Enhanced gesture state management for pinch and drag interactions, improving user experience during zoom.
- Updated event handling to ensure smoother transitions between single and multi-touch interactions, including better tap detection logic.
- Adjusted logic to maintain consistent pan behavior during zoom adjustments, ensuring a more intuitive interaction.
@880831ian
Copy link

I need this feature; it's very helpful for displaying documents. 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants