vcl/unx/gtk3/gtkinst.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 79541a4808561fbe400cb4e0d33c8ddc23cf9d84
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Jan 16 21:11:04 2023 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Jan 17 10:13:15 2023 +0000

    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 <caol...@redhat.com>

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

Reply via email to