diff options
Diffstat (limited to 'sc/source/ui/view/gridwin.cxx')
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 44096e0c7f43..ffcdf1656b15 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -2211,10 +2211,11 @@ void ScGridWindow::MouseButtonUp( const MouseEvent& rMEvt ) ScGlobal::OpenURL(aUrl, aTarget, isTiledRendering); return; } - // in mobile view there is no ctrl+click and for hyperlink popup + // On a mobile device view there is no ctrl+click and for hyperlink popup // the cell coordinates must be sent along with click position for elegance if (isTiledRendering && - comphelper::LibreOfficeKit::isMobile(SfxLokHelper::getView())) + (comphelper::LibreOfficeKit::isMobilePhone(SfxLokHelper::getView()) || + comphelper::LibreOfficeKit::isTablet(SfxLokHelper::getView()))) { ScTabViewShell* pViewShell = pViewData->GetViewShell(); Point aPos = rMEvt.GetPosPixel(); |