odoo/odoo#233911

Created by fw-bot
Merged at e7f1579adac007f1f92c1587b8a8e19868453ae2

Statuses:

label
odoo-dev:saas-18.3-18.0-website-scroll-document-jula-474085-fw
head
15d1db6f90ad96d09242771742b4cad7483622aa
merged
8 months ago by Website, Julien Launois (jula)
odoo/odoo
18.0 #228396
saas-18.2 #233850
saas-18.3 #233911
saas-18.4 #234011

[FIX] website: get scroll from document element

[FIX] website: get scroll from document element for footer animation

Current behavior before commit:
Since this PR, the scrolling is not done on #wrapwrap anymore.
Now when an animation is set on an element inside the footer it
will not appear if a slideout effect is set on it.

Description of the fix:
Get scrollTop and scrollHeight from the document element instead of
#wrapwrap and add a test tour.

Steps to reproduce:
1. Open the Website builder.
2. Click on a column in the footer.
3. Set an "On Appearance" Animation on it.
4. Set the footer Slideout Effect to "Slide Hover".
5. Add some content on the page so that it's needed to scroll for the
footer to be visible.
6. Save.
7. Scroll to the footer.
=> The column doesn't appear.


[FIX] website: scroll on new entry in faq horizontal

Current behavior before commit:
Since this PR, the scrolling is not done on #wrapwrap anymore.
Now when adding a new entry to the snippet faq horizontal, the page
doesn't scroll automatically to the new entry.

This behavior has actually never worked because the PR that introduced
faq horizontal
was merged just after the PR that moved the
scrolling to the document element
.

Description of the fix:
Get scrollTop and scrollHeight from the document element instead of
#wrapwrap and add a test tour.

Steps to reproduce:
1. Open the Website builder.
2. Drag a Text block
3. Choose the FAQ horizontal snippet
4. Click on "Add New"
=> The page doesn't scroll to the new entry.

Forward-Port-Of: #233850
Forward-Port-Of: #228396