Skip to content

Conversation

bvr-odoo
Copy link
Contributor

@bvr-odoo bvr-odoo commented Dec 2, 2024

Since commit [1], where the frontend scrolling was moved back out of the
'#wrapwrap', an issue sometimes occurs with the standard effect when
scrolling on mobile page.

Steps to reproduce:

  • Go to a website with "e-commerce" installed.
  • Use the devtools to display the website on a mobile device (note that
    the bug may only occur on certain mobile devices, so it might be
    necessary to test several to reproduce it).
  • Add a product to the cart and go to the "/shop/checkout" page.
  • Try scrolling down.
  • Bug: scrolling is blocked.

The bug happens because, when the page starts scrolling with the
"standard" header, there’s a short moment when the header has a
"translate: transform" applied but is not yet "affixed." This creates a
new coordinate system for the header and affects its child elements,
like the "off-canvas mobile" navbar. As a result, the
"off-canvas mobile" navbar temporarily changes the page size, which
causes scrolling issues, especially on mobile devices.

To fix this, we add "display: none" to the "off-canvas mobile" navbar
during this short moment so it no longer affects the page size.

opw-4303667
opw-4305493

@robodoo
Copy link
Contributor

robodoo commented Dec 2, 2024

Pull request status dashboard

@bvr-odoo bvr-odoo force-pushed the 18.0-fix-blocked-scroll-down-bvr branch from 3a6efd5 to b6b287e Compare December 2, 2024 14:37
@bvr-odoo bvr-odoo requested a review from qsm-odoo December 2, 2024 14:41
@C3POdoo C3POdoo added the OE the report is linked to a support ticket (opw-...) label Dec 2, 2024
@bvr-odoo bvr-odoo force-pushed the 18.0-fix-blocked-scroll-down-bvr branch from b6b287e to c40ec55 Compare December 5, 2024 08:56
@bvr-odoo bvr-odoo marked this pull request as ready for review December 5, 2024 08:57
@C3POdoo C3POdoo requested a review from a team December 5, 2024 08:59
Copy link
Contributor

@qsm-odoo qsm-odoo left a comment

Choose a reason for hiding this comment

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

@bvr-odoo bvr-odoo force-pushed the 18.0-fix-blocked-scroll-down-bvr branch from c40ec55 to 5a99628 Compare December 5, 2024 16:05
@bvr-odoo bvr-odoo requested a review from qsm-odoo December 5, 2024 16:09
qsm-odoo

This comment was marked as outdated.

Since commit [1], where the frontend scrolling was moved back out of the
'#wrapwrap', an issue sometimes occurs with the standard effect when
scrolling on mobile page.

Steps to reproduce:

- Go to a website with "e-commerce" installed.
- Use the devtools to display the website on a mobile device (note that
the bug may only occur on certain mobile devices, so it might be
necessary to test several to reproduce it).
- Add a product to the cart and go to the "/shop/checkout" page.
- Try scrolling down.
- Bug: scrolling is blocked.

The bug happens because, when the page starts scrolling with the
"standard" header, there’s a short moment when the header has a
"translate: transform" applied but is not yet "affixed." This creates a
new coordinate system for the header and affects its child elements,
like the "off-canvas mobile" navbar. As a result, the
"off-canvas mobile" navbar temporarily changes the page size, which
causes scrolling issues, especially on mobile devices.

To fix this, we add "display: none" to the "off-canvas mobile" navbar
during this short moment so it no longer affects the page size.

[1]: odoo@189a7c9

opw-4303667
opw-4305493
@bvr-odoo bvr-odoo force-pushed the 18.0-fix-blocked-scroll-down-bvr branch from 5a99628 to f129e8e Compare December 5, 2024 16:28
Copy link
Contributor

@qsm-odoo qsm-odoo left a comment

Choose a reason for hiding this comment

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

@robodoo robodoo closed this in dca8bdd Dec 5, 2024
@qsm-odoo qsm-odoo deleted the 18.0-fix-blocked-scroll-down-bvr branch December 6, 2024 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OE the report is linked to a support ticket (opw-...)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants