summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorHenry Castro <hcastro@collabora.com>2021-06-24 07:48:19 -0400
committerSzymon Kłos <szymon.klos@collabora.com>2021-10-07 18:10:49 +0200
commit51dc26375e00e380eea5f8c53f35f21dbf8f8166 (patch)
treeccd68d8b5c09724e035c29362b737e9ea6938258 /sc/source
parent00bb3dbed8331adc3557f30fd9242e1f5cedc7b4 (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>
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/view/gridwin.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index 125a5fc48a69..995c3009b28c 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -2721,16 +2721,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 );
}