From c694d64e66f3da81f70d103e20191734b8341f00 Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Thu, 24 Sep 2020 19:49:38 +0000 Subject: [PATCH] [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#58527 X-original-commit: 0262e33d32fa6b3364f4d9c4144879bf28a0869f Signed-off-by: Quentin Smetz (qsm) --- addons/web_editor/static/src/js/editor/snippets.editor.js | 3 +++ 1 file changed, 3 insertions(+) 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',