diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-16 21:11:04 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2023-01-17 10:13:15 +0000 |
commit | 79541a4808561fbe400cb4e0d33c8ddc23cf9d84 (patch) | |
tree | 354fc49b84a186356ea7ab3db67fc303fe9a6a9b /vcl | |
parent | ee73d14e06180d8a60fc4fc34ab71f23095e7621 (diff) |
tdf#153049 use ScrollType::DontKnow for a mouse wheel spin
use has_grab() to try and distinguish these
Change-Id: I09e0f2219458e9ca0e6f0c0093aea5d5920acef9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145644
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 09d2db890612..c051da78b969 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -8655,7 +8655,8 @@ public: virtual ScrollType get_scroll_type() const override { - return ScrollType::Drag; + // tdf#153049 want a mousewheel spin to be treated as DontKnow + return has_grab() ? ScrollType::Drag : ScrollType::DontKnow; } virtual int get_scroll_thickness() const override |