From 5cf5a4bcffa1556f8cc3c14516fb9b6d0c072321 Mon Sep 17 00:00:00 2001 From: Benoit Socias Date: Thu, 4 Nov 2021 13:14:11 +0000 Subject: [PATCH] [FIX] website: consume padding adjust tour step on mousedown Before this commit the step about the slider to adjust the padding was only consumed on click, which does not happen if the slider is used in a drag'n'drop operation as expected. After this commit this step is consumed on mousedown so that the drag'n'drop operation is also taken into account. task-2728994 (was task-2675252) closes odoo/odoo#83692 X-original-commit: 42ce224fbe97f8d99ca5feec6d271412ce0647e1 Signed-off-by: Quentin Smetz (qsm) Signed-off-by: Benoit Socias (bso) --- addons/website/static/src/js/tours/tour_utils.js | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/website/static/src/js/tours/tour_utils.js b/addons/website/static/src/js/tours/tour_utils.js index a65b80450e7..5f98066a8d1 100644 --- a/addons/website/static/src/js/tours/tour_utils.js +++ b/addons/website/static/src/js/tours/tour_utils.js @@ -106,6 +106,7 @@ function changePaddingSize(direction) { return { trigger: `.oe_overlay.ui-draggable.o_we_overlay_sticky.oe_active .o_handle.${paddingDirection}`, content: Markup(_.str.sprintf(_t("Slide this button to change the %s padding"), direction)), + consumeEvent: 'mousedown', position: position, }; }