diff options
| author | Pierre Paridans <app@odoo.com> | 2019-01-29 14:08:36 +0000 |
|---|---|---|
| committer | Pierre Paridans <app@odoo.com> | 2019-01-30 15:42:41 +0000 |
| commit | 6ca2563155a5343c4dc8af05e20e2debb9438db3 (patch) | |
| tree | ea2e894fd77af2db89007127c9218a9493e3996b /addons/web/static/src/js | |
| parent | 483b6024cd44fcc6e2b987505beb739014b51856 (diff) | |
[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
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/views/form/form_renderer.js | 1 |
1 files changed, 1 insertions, 0 deletions
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", }); }, /** |
