Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui5-flexible-column-layout): iframe content no longer hinders resize #9859

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

kineticjs
Copy link
Contributor

This fixes the following issue:
When the user drags the column separator to resize some columns, the resize is interrupted if one of the resized columns contains an iframe and the mouse cursor does few pixels into the iframe content during resize (sample: https://js-lsv2ci.stackblitz.io/).
This happens because the mouse events in that moment get processed by the iframe and not by the main frame, so the main frame loses information on where the user is intending to move the separator (or if they released the mouse while the cursor was above the iframe).

Steps to reproduce:
Open sample: https://js-lsv2ci.stackblitz.io/ and drag to resize the column containing the pdf.

Solution:
Disable pointer events on columns during resizing to prevent unwanted interaction with the columns content.

@kineticjs kineticjs changed the title fix(flexible-column-layout): iframe content no longer hinders resize fix(ui5-flexible-column-layout): iframe content no longer hinders resize Sep 12, 2024
@kineticjs kineticjs force-pushed the fcl-nested-iframe branch 5 times, most recently from 928764f to 333cb9d Compare September 13, 2024 08:06
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.

2 participants