diff options
| author | Laurent Stukkens (LTU) <ltu@odoo.com> | 2020-09-24 19:49:38 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-09-25 09:52:48 +0000 |
| commit | 0262e33d32fa6b3364f4d9c4144879bf28a0869f (patch) | |
| tree | 2d2ed9a55c186e7920df27147a8cede30b966242 /addons/web_editor/static/src | |
| parent | 7cbb4eb9afa64206c46b56b01d4b51d58e0219cb (diff) | |
[FIX] web_editor: prevent scroll over right panel
* Prior to this commit, the auto scroll is triggered when dragging
items over the right panel (if the dragged item is close to bottom
or top).
* After this commit the auto scroll is is no more triggered as long
as the dragged item is over the right panel area.
closes odoo/odoo#58470
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.editor.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index f464cbe4c3a..dff27ed70e0 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -1785,6 +1785,9 @@ var SnippetsMenu = Widget.extend({ */ _getScrollOptions(options = {}) { return Object.assign({}, options, { + scrollBoundaries: Object.assign({ + right: false, + }, options.scrollBoundaries), jQueryDraggableOptions: Object.assign({ appendTo: this.$body, cursor: 'move', |
