From 5ef54e97ecd2e2a7557de9cb5e07c55a172b55e1 Mon Sep 17 00:00:00 2001 From: Kezi Olio Date: Fri, 5 Apr 2019 09:46:50 -0600 Subject: [PATCH] Set Qt::AA_CompressTabletEvents attribute to avoid latency when scrolling with a tablet Summary: BUG: 399208 See also: https://bugreports.qt.io/browse/QTBUG-71708 Enabling this option _vastly_ improves the user experience on wacom tablets and touchscreens Reviewers: #okular Subscribers: sander, aacid, okular-devel, #okular Tags: #okular Differential Revision: https://phabricator.kde.org/D16519 --- shell/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/main.cpp b/shell/main.cpp index 2e2e80153..17b58c610 100644 --- a/shell/main.cpp +++ b/shell/main.cpp @@ -31,6 +31,7 @@ int main(int argc, char** argv) { QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); + QCoreApplication::setAttribute(Qt::AA_CompressTabletEvents); QApplication app(argc, argv); KLocalizedString::setApplicationDomain("okular");