From 2564d66fe0a8c809d253b7401e2415659e29ad59 Mon Sep 17 00:00:00 2001
From: Dharmang Soni <dpr@openerp.com>
Date: Thu, 17 Aug 2017 18:05:28 +0530
Subject: [PATCH] [FIX] mail: smooth scrolling in discuss for iOS app

In the iOS app, the content immediately ceases to
scroll when you remove your finger from the touchscreen.

Now, he content continues to scroll for a while after
finishing the scroll gesture and removing your finger
from the touchscreen.
The speed and duration of the continued scrolling is
proportional to how vigorous the scroll gesture was.

This Css property is the only way we find to have
the same behavior in the android app and in the iOS app.
---
 addons/mail/static/src/less/chat_window.less   | 1 +
 addons/mail/static/src/less/client_action.less | 1 +
 2 files changed, 2 insertions(+)

diff --git a/addons/mail/static/src/less/chat_window.less b/addons/mail/static/src/less/chat_window.less
index 79e7ae3f2981..a02fd81bb0d9 100644
--- a/addons/mail/static/src/less/chat_window.less
+++ b/addons/mail/static/src/less/chat_window.less
@@ -78,6 +78,7 @@
     .o_mail_thread {
         .o-flex(1, 1, auto);
         overflow: auto;
+        -webkit-overflow-scrolling: touch; // smooth scrolling in iOS app (Safari)
         .o_thread_date_separator {
             margin: 0px 0px 15px 0px;
             .o_thread_date {
diff --git a/addons/mail/static/src/less/client_action.less b/addons/mail/static/src/less/client_action.less
index 968763758967..0dd284afb902 100644
--- a/addons/mail/static/src/less/client_action.less
+++ b/addons/mail/static/src/less/client_action.less
@@ -129,6 +129,7 @@
             .o-flex(1, 0, 0);
             overflow: auto;
             padding: 0 0 15px 0;
+            -webkit-overflow-scrolling: touch; // smooth scrolling in iOS app (Safari)
 
             .o_chat_help_message {
                 padding: 25px 0;
-- 
GitLab