Resolves tdf#160324 - Larger hitarea for column header

Finalizes patch I6d527d2b0d0de3b48f123b626ebf0b6ce60299a5

Change-Id: Iff5cd4f6252e42cf8fad0aa2f37f70db0b8a15ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168210
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
This commit is contained in:
Heiko Tietze 2024-05-29 14:09:20 +02:00 committed by Heiko Tietze
parent 0d3bb65620
commit 2269b418f7

View file

@ -628,9 +628,6 @@ void ScHeaderControl::Paint( vcl::RenderContext& /*rRenderContext*/, const tools
SCCOLROW ScHeaderControl::GetMousePos(const Point& rPos, bool& rBorder) const
{
// #define nHitArea 5
const int nHitArea( officecfg::Office::Common::Misc::ExperimentalMode::get() ? 5 : 2 );
bool bFound = false;
SCCOLROW nPos = GetPos();
SCCOLROW nHitNo = nPos;
@ -654,7 +651,7 @@ SCCOLROW ScHeaderControl::GetMousePos(const Point& rPos, bool& rBorder) const
nScrPos += GetEntrySize( nEntryNo - 1 ) * nLayoutSign; //! GetHiddenCount() ??
nDif = nMousePos - nScrPos;
if (nDif >= -nHitArea && nDif <= +nHitArea)
if (nDif >= -5 && nDif <= 5)
{
bFound = true;
nHitNo=nEntryNo-1;