[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:
@@ -335,6 +335,7 @@ var FormRenderer = BasicRenderer.extend({
|
||||
});
|
||||
self.trigger_up('swipe_right');
|
||||
},
|
||||
excludedElements: ".o_notebook .nav.nav-tabs",
|
||||
});
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user