web-stories-wp
web-stories-wp copied to clipboard
Zoom behavior broken
Bug Description
On a 2K display, going from Fill
or 200%
zoom level (with some non-zero scroll) to 100%
leaves the Display layer and frames layer un aligned.
Expected Behaviour
The Display Layer should not be out of view.
Steps to Reproduce
- Add a few elements to the story.
- Set the zoom level to 200% or Fill.
- Scroll to the bottom of the canvas.
- Set the zoom level to 100% or Fill.
Screenshots
https://user-images.githubusercontent.com/53055971/232972445-c829b06b-edb5-4ef1-a6f7-c814ea761709.mov
Additional Context
- Plugin Version: 1.32.0-alpha.0
- WordPress Version: 6.2
- Operating System: MacOS
- Browser: Chrome
- Display resolution: 2048 * 1080
Good catch! We should fix this
Possibly related: #7638
@AnuragVasanwala are you able to reproduce this one?
@AnuragVasanwala are you able to reproduce this one?
@swissspidy Yes, I tried to reproduce it and Display Layer gets out of the view. Upon adding a new element gets back Display Layer so need fix for this. Will identify the cause.
Do you suggest any pointers regarding the issue?
Unfortunately I don‘t have any pointers. It‘s also not a high priority issue, let‘s focus on the group layer bug first.
@swissspidy Just an update!
Changing false
value of --overflow-y
to auto
(from visible
) seems fixed the issue but still trying to figure out why? 🤔
https://github.com/GoogleForCreators/web-stories-wp/blob/53b1b9ee359e6e9eab09428d87513907ce020667/packages/story-editor/src/components/canvas/layout.js#L361
- '--overflow-y': hasVerticalOverflow ? 'scroll' : 'visible',
+ '--overflow-y': hasVerticalOverflow ? 'scroll' : 'auto',