summaryrefslogtreecommitdiff
path: root/addons/website/static/src/xml/website.editor.xml
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2020-09-17 12:14:48 +0000
committerSamuel Degueldre <sad@odoo.com>2020-09-18 08:57:15 +0000
commit4d1e47213627304329fa438cae6d6c58484dbb32 (patch)
treedf7852ab6c918b8377bf43ea2df9b8c32edb947d /addons/website/static/src/xml/website.editor.xml
parentfc20275944e7c278b5cc5d686bd44d4414f62d69 (diff)
[IMP] web_editor: perf; skip mutually-cancelling actions in editor
Previously, when the user quickly hovered over many options (eg when trying to click on the last item of a select menu), all of the options that were briefly hovered would be previewed in succession. While this is not a problem for options that are fast to change, some option take some time (eg, image filters), but all of the intermediary previews would still show one after another, which is both very slow and completely useless. This commit adds a per-widget action queue. When a widget is called, it will immediately add an action item to this queue, but when the snippet_edition mutex becomes available to execute this action, it will first check that this action will not be immediately reverted, and if it will, the action is skipped entirely. task-2337344 closes odoo/odoo#57947 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website/static/src/xml/website.editor.xml')
0 files changed, 0 insertions, 0 deletions