Skip to content
Snippets Groups Projects
Commit 6ca25631 authored by Pierre Paridans's avatar Pierre Paridans
Browse files

[FIX] web: form's tabs should be scrollable on mobile

On mobile, swiping right/left switches to next/previous record.

This feature prevents the horizontal scroll of the form notebook's tabs by
overtaking the swipe gesture on those elements.

This issue had different consequences depending on the platform:
  - on iOS: the tabs cannot be scrolled at all.
  - on Android: the tabs can only be scrolled by using a two-fingers
    gesture

This commit restore the horizontal scroll on the tabs but also keep the
swipe-gesture to navigate records.

opw-1929267

closes odoo/odoo#30658
parent 483b6024
No related branches found
No related tags found
No related merge requests found
......@@ -335,6 +335,7 @@ var FormRenderer = BasicRenderer.extend({
});
self.trigger_up('swipe_right');
},
excludedElements: ".o_notebook .nav.nav-tabs",
});
},
/**
......
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