Skip to content
Snippets Groups Projects
Commit 912acb73 authored by Julien Banken's avatar Julien Banken
Browse files

[FIX] slides: prevent the # anchors of the PDF controllers from triggering a scroll jump


PURPOSE

Currently, the PDF viewer is loaded from an iframe and the PDF controllers
contains empty anchor links. When the user clicks on one of these links,
the browsers based on Chromium will trigger a "scroll jump" and the iframe
will be placed at the top of the browser window.

When the PDF document is larger than the viewport, this behavior can be
quite annoying: The user will have to scroll the browser window to
see the controllers each time they click on a controller (-> link) as
(1) the controllers triggers a scroll jump and (2) the controllers are
below the document that does not fit entirely on screen. To avoid that,
we will add an event listener that returns false on each controller. The
controllers will then no longer trigger a scroll jump.

SPECS

- Add an event listener on the PDF controllers links to prevent a scroll jump.

LINKS

Task id: 2500574

closes odoo/odoo#73816

Signed-off-by: default avatarThibault Delavallee (tde) <tde@openerp.com>
parent d44da372
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment