mirror of
https://github.com/imfing/hextra.git
synced 2025-09-15 12:01:59 -04:00
feat(image-zoom): improve zoom interactions and tap detection
- 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.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
/* Prevent iOS bounce */
|
||||
position: fixed;
|
||||
overflow: hidden;
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.hextra-zoom-image-overlay.show {
|
||||
@@ -68,7 +69,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
.content img:not([data-no-zoom]) {
|
||||
.content img:not([data-no-zoom]):not(.not-prose img) {
|
||||
cursor: zoom-in;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user