Improve scrolling smoothness of URL bar 36/147336/1
authorcookie <cookie@samsung.com>
Mon, 4 Sep 2017 05:06:40 +0000 (05:06 +0000)
committercookie <cookie@samsung.com>
Mon, 4 Sep 2017 05:06:40 +0000 (05:06 +0000)
[Problem] When we scroll web page, motion of URL bar is not smooth.
[Cause] Odd offset of top controls is skipped in |WebPageUI::urlbarOffsetSet|.
[Solution] Remove unneeded condition.

Change-Id: Ia59c176465ceb905446b5289da5f4c2021d3433b
Signed-off-by: cookie <cookie@samsung.com>
services/WebPageUI/WebPageUI.cpp

index daeaba8b76cd9cb2ec841817e3aaa5fa72e5694e..4c2f27c58ea5017c1b6953bf00ced0f4c0efeba5 100755 (executable)
@@ -600,8 +600,7 @@ void WebPageUI::urlbarOffsetSet(const float& offset)
     BROWSER_LOGD("[%s:%d] %f", __PRETTY_FUNCTION__, __LINE__, offset);
     Edje_Message_Int message;
     message.val = static_cast<int>(offset);
-    if (message.val % 2 == 0)
-        edje_object_message_send(elm_layout_edje_get(m_mainLayout), EDJE_MESSAGE_INT, 0, &message);
+    edje_object_message_send(elm_layout_edje_get(m_mainLayout), EDJE_MESSAGE_INT, 0, &message);
 }
 
 void WebPageUI::bottombarOffsetSet(const float& offset)
@@ -610,10 +609,8 @@ void WebPageUI::bottombarOffsetSet(const float& offset)
     Edje_Message_Int message;
     message.val = static_cast<int>(offset);
     auto edje = elm_layout_edje_get(m_mainLayout);
-    if (message.val % 2 == 0) {
-        edje_object_message_send(edje, EDJE_MESSAGE_INT, 1, &message);
-        edje_object_message_signal_process(edje);
-    }
+    edje_object_message_send(edje, EDJE_MESSAGE_INT, 1, &message);
+    edje_object_message_signal_process(edje);
 }
 
 bool WebPageUI::isBrighterThanDefault(const int& r, const int& g, const int& b)