[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) <qsm@odoo.com> Signed-off-by: Benoit Socias (bso) <bso@odoo.com>
This commit is contained in:
@@ -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("<b>Slide</b> this button to change the %s padding"), direction)),
|
||||
consumeEvent: 'mousedown',
|
||||
position: position,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user