diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-01-16 21:11:04 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-01-23 09:41:33 +0100 |
commit | 01da9938fee3d1e8f220d3779a4781c5a3c18530 (patch) | |
tree | a361d6ace54fcece8f4b43f71634c0462e63fc9d /svtools | |
parent | 3b06f5a2098880bf99d14ff203a6e9103f07a5d2 (diff) |
Resolves: tdf#153049 cell range not expanding while scrolling
use ScrollType::DontKnow for a mouse wheel spin
use has_grab() to try and distinguish these
and UpdateScrollBars on mouse release
which is what the old code effectively did
Change-Id: I19b6de0a0015420d1802969064b3338ce6ae1638
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145664
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/control/scrolladaptor.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svtools/source/control/scrolladaptor.cxx b/svtools/source/control/scrolladaptor.cxx index 14480f0c7d2d..64799a15e96d 100644 --- a/svtools/source/control/scrolladaptor.cxx +++ b/svtools/source/control/scrolladaptor.cxx @@ -106,6 +106,11 @@ void ScrollAdaptor::SetScrollHdl(const Link<weld::Scrollbar&, void>& rLink) m_xScrollBar->connect_adjustment_changed(rLink); } +void ScrollAdaptor::SetMouseReleaseHdl(const Link<const MouseEvent&, bool>& rLink) +{ + m_xScrollBar->connect_mouse_release(rLink); +} + tools::Long ScrollAdaptor::DoScroll(tools::Long nNewPos) { const auto nOrig = m_xScrollBar->adjustment_get_value(); |