[IMP] web, website: prevent auto scroll from left panel

* Prior to this commit, when starting to drag a new snippet from
  the left panel, the auto scroll feature was triggered if the
  snippet was one of the top or bottom ones.

* After this commit, the auto scroll feature will be disabled from
  the left panel.

task-2307404

closes odoo/odoo#57449

X-original-commit: f1f48cdaab3dd7847e8546ad9887f24a9e2ed4c1
Related: odoo/enterprise#13139
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
Laurent Stukkens (LTU)
2020-09-10 15:04:00 +00:00
parent efa43fb618
commit 4ad779b07f
2 changed files with 54 additions and 26 deletions
@@ -1791,6 +1791,9 @@ var SnippetsMenu = Widget.extend({
$top: $('#web_editor-top-edit'), // TODO should ideally be retrieved another way
$left: this.$el,
}, options.offsetElements),
scrollBoundaries: Object.assign({
left: false,
}, options.scrollBoundaries),
jQueryDraggableOptions: Object.assign({
appendTo: this.$body,
cursor: 'move',