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>
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 09d2db8..c051da7 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