summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/components/attachment_viewer
diff options
context:
space:
mode:
authorThanh Dodeur <tso@odoo.com>2020-10-14 12:33:28 +0000
committerThanh Dodeur <tso@odoo.com>2020-10-14 12:33:28 +0000
commit3d9e2e031ea2e92a50769cc69fe37741d32b6820 (patch)
treebea2d19e59b9f759f2c8a4ea35173c939f5ac7c0 /addons/mail/static/src/components/attachment_viewer
parent0669ee36e195e8e0f98131219b59fcc5cba4cea7 (diff)
[FIX] mail: inverts the zoom scroll direction of the attachment viewer
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#59992 Signed-off-by: Alexandre Kühn (aku) <aku@odoo.com>
Diffstat (limited to 'addons/mail/static/src/components/attachment_viewer')
-rw-r--r--addons/mail/static/src/components/attachment_viewer/attachment_viewer.js4
1 files 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 });
}
}