diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-10-24 16:30:31 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2017-10-27 06:52:08 +0000 |
commit | 4267567f5366b237c763d1b93cd09501a483a070 (patch) | |
tree | 06ac8607b5bcfabf94d7270209596b7120563110 /src/core/web_event_factory.h | |
parent | 684cfe05641ba9f3abc7e128d9dab5b331ef0689 (diff) |
Coalesce wheel events when possible
Combine wheel events if we are getting more than Chromium can handle.
This improves latency and perceived performance when scrolling with
touchpads or fine-grained mouse, on a slow machine or with a debug
build.
Change-Id: Id847c8e7782e155c28067b6051ce92896b68ca7a
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'src/core/web_event_factory.h')
-rw-r--r-- | src/core/web_event_factory.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_event_factory.h b/src/core/web_event_factory.h index 259795c1f..5758af848 100644 --- a/src/core/web_event_factory.h +++ b/src/core/web_event_factory.h @@ -68,6 +68,7 @@ public: static blink::WebGestureEvent toWebGestureEvent(QNativeGestureEvent *, double dpiScale); #endif static blink::WebMouseWheelEvent toWebWheelEvent(QWheelEvent*, double dpiScale); + static bool coalesceWebWheelEvent(blink::WebMouseWheelEvent &, QWheelEvent*, double dpiScale); static content::NativeWebKeyboardEvent toWebKeyboardEvent(QKeyEvent*); }; |