diff options
author | Henry Castro <hcastro@collabora.com> | 2021-06-24 07:48:19 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2022-02-16 22:57:52 +0100 |
commit | f3b2dd0fc4c413c9a8382aecbd8b7f842bfa8c28 (patch) | |
tree | a95a686281ee9579dedefbc8ecb6e6d7f4ba8ef7 /sc/source/ui/view | |
parent | c6db02a2afe4263e060fe6166db8e5426dd2ecd1 (diff) |
lok: sc: handle all local mouse tracking for Calc
Change-Id: I11f3477c0f966d403e076fc73b7e5507ad6597f7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118877
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117779
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'sc/source/ui/view')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index cba63146bab4..6fd0976d424d 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -2994,16 +2994,13 @@ void ScGridWindow::Tracking( const TrackingEvent& rTEvt ) } else if ( rTEvt.IsTrackingEnded() ) { - if ( !comphelper::LibreOfficeKit::isActive() ) - { - // MouseButtonUp always with matching buttons (eg for test tool, # 63148 #) - // The tracking event will indicate if it was completed and not canceled. - MouseEvent aUpEvt( rMEvt.GetPosPixel(), rMEvt.GetClicks(), - rMEvt.GetMode(), nButtonDown, rMEvt.GetModifier() ); - MouseButtonUp( aUpEvt ); - } + // MouseButtonUp always with matching buttons (eg for test tool, # 63148 #) + // The tracking event will indicate if it was completed and not canceled. + MouseEvent aUpEvt( rMEvt.GetPosPixel(), rMEvt.GetClicks(), + rMEvt.GetMode(), nButtonDown, rMEvt.GetModifier() ); + MouseButtonUp( aUpEvt ); } - else if ( !comphelper::LibreOfficeKit::isActive() ) + else MouseMove( rMEvt ); } |