[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
This commit is contained in:
Pierre Paridans
2019-01-30 15:42:41 +00:00
parent 483b6024cd
commit 6ca2563155
@@ -335,6 +335,7 @@ var FormRenderer = BasicRenderer.extend({
});
self.trigger_up('swipe_right');
},
excludedElements: ".o_notebook .nav.nav-tabs",
});
},
/**