From 9d87d13dd2d356200db03a79c4cbacc89353c1b7 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 20 Feb 2019 17:39:53 +0100 Subject: [PATCH] fixes 0003843: registration of pointer in navigation cube/cluster is off, makes clicking difficult (fixed by garya) --- src/Gui/NaviCube.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Gui/NaviCube.cpp b/src/Gui/NaviCube.cpp index ed1440b604..0738a7224f 100644 --- a/src/Gui/NaviCube.cpp +++ b/src/Gui/NaviCube.cpp @@ -1262,8 +1262,13 @@ bool NaviCubeImplementation::processSoEvent(const SoEvent* ev) { short x, y; ev->getPosition().getValue(x, y); // FIXME find out why do we need to hack the cursor position to get - y += 4; - x -= 2; + // 2019-02-17 + // The above comment is truncated; don't know what it's about + // The two hacked lines changing the cursor positon are responsible for parts of the + // navigational cluster not being active. + // Commented them out and everything seems to be working +// y += 4; +// x -= 2; if (ev->getTypeId().isDerivedFrom(SoMouseButtonEvent::getClassTypeId())) { const SoMouseButtonEvent* mbev = static_cast(ev); if (mbev->isButtonPressEvent(mbev, SoMouseButtonEvent::BUTTON1))