From c8ed4697f67f8a3dc9ef0e769676ea3756d60988 Mon Sep 17 00:00:00 2001 From: Thanh Dodeur Date: Wed, 14 Oct 2020 12:33:28 +0000 Subject: [PATCH] [FIX] mail: inverts the zoom scroll direction of the attachment viewer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit inverts the zoom direction of the scroll wheel in the attachment viewer to respect the behaviour of before the refactor. part of task-2171884 closes odoo/odoo#60009 X-original-commit: 3d9e2e031ea2e92a50769cc69fe37741d32b6820 Signed-off-by: Alexandre Kühn (aku) --- .../src/components/attachment_viewer/attachment_viewer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js index 1642e531758..390eac9ebc3 100644 --- a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js +++ b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js @@ -573,9 +573,9 @@ class AttachmentViewer extends Component { return; } if (ev.deltaY > 0) { - this._zoomIn({ scroll: true }); - } else { this._zoomOut({ scroll: true }); + } else { + this._zoomIn({ scroll: true }); } }