From 4a8ff2ab2c8112403263606a163803dfcd006f5e Mon Sep 17 00:00:00 2001 From: Adrien Dieudonne Date: Mon, 31 Aug 2020 13:50:02 +0000 Subject: [PATCH] [FIX] web: preview PDF file on iOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Before this commit, the end users were unable to click on the kanban image to see document's preview. To fix this we removed lines from a previous fix which is no longer useful in 13.0 because we now use kanban views for many2X fields instead of list views. See original commit: https://github.com/odoo/odoo/commit/26c62cbb4401bffb72ce77fee481ca84b77a8143 So for mobile phones it's working fine. For iPads, this rule is no longuer necessary since iPadOS. See "Accelerated Scrolling on iOS and iPadOS": https://webkit.org/blog/9674/new-webkit-features-in-safari-13/ For previous versions it still works because the DOM has changed. Steps to reproduce: - Go to Document - Click on "o_kanban_image" => Your're stuck on a grayed page. opw-2260101 closes odoo/odoo#56977 X-original-commit: 0d41d0daa7220a791bc4df85cca4100e3634e432 Related: odoo/enterprise#12907 Signed-off-by: Adrien Dieudonné (adr) --- addons/web/static/src/scss/modal.scss | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/web/static/src/scss/modal.scss b/addons/web/static/src/scss/modal.scss index e3331fe9f2c..7c5e230708f 100644 --- a/addons/web/static/src/scss/modal.scss +++ b/addons/web/static/src/scss/modal.scss @@ -122,8 +122,6 @@ } body.modal-open { - // Allow vertical scrolling in modals on iOS - -webkit-overflow-scrolling: touch; .modal { @include o-scrollbar-overlay; }