[M108 Migration] Change the Web Page scroll interval using the Keyboard 4 direction key 70/289670/3
authorwangjing <jing124.wang@samsung.com>
Mon, 13 Mar 2023 02:36:34 +0000 (10:36 +0800)
committerBot Blink <blinkbot@samsung.com>
Tue, 21 Mar 2023 07:50:16 +0000 (07:50 +0000)
It's the requirement from WebBrowser:
There is no feeling of scrolling quickly by the keyboard 4 direction key.
This part is probably the acceleration effect when 4 direction key is input by keyboard.
Please change the Web Page scroll interval using the Keyboard 4 direction key.

Need change the kPixelsPerLineStep from 40px to 140px

Reference:
https://review.tizen.org/gerrit/#/c/platform/framework/web/chromium-efl/+/285465/

Change-Id: I00fe3bad46e938d351ce5eb42a1c56be00369d2a
Signed-off-by: wangjing <jing124.wang@samsung.com>
cc/input/scroll_utils.h

index 5ad30c6..592411c 100644 (file)
@@ -6,6 +6,7 @@
 #define CC_INPUT_SCROLL_UTILS_H_
 
 #include "cc/cc_export.h"
+#include "build/build_config.h"
 
 namespace gfx {
 class Vector2dF;
@@ -14,7 +15,11 @@ class SizeF;
 
 namespace cc {
 
+#if BUILDFLAG(IS_TIZEN_TV)
+static constexpr int kPixelsPerLineStep = 140;
+#else
 static constexpr int kPixelsPerLineStep = 40;
+#endif
 static constexpr float kMinFractionToStepWhenPaging = 0.875f;
 
 // Each directional scroll for percentage-based units should scroll 1/8th of