From 6ca2563155a5343c4dc8af05e20e2debb9438db3 Mon Sep 17 00:00:00 2001 From: Pierre Paridans Date: Tue, 29 Jan 2019 14:08:36 +0000 Subject: [PATCH] [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 --- addons/web/static/src/js/views/form/form_renderer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/static/src/js/views/form/form_renderer.js b/addons/web/static/src/js/views/form/form_renderer.js index 91146ccd504..258fbc55fb4 100644 --- a/addons/web/static/src/js/views/form/form_renderer.js +++ b/addons/web/static/src/js/views/form/form_renderer.js @@ -335,6 +335,7 @@ var FormRenderer = BasicRenderer.extend({ }); self.trigger_up('swipe_right'); }, + excludedElements: ".o_notebook .nav.nav-tabs", }); }, /**