[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) <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
parent
64b663fb42
commit
c694d64e66
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user