fixes 0003843: registration of pointer in navigation cube/cluster is off, makes clicking difficult (fixed by garya)
This commit is contained in:
@@ -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<const SoMouseButtonEvent*>(ev);
|
||||
if (mbev->isButtonPressEvent(mbev, SoMouseButtonEvent::BUTTON1))
|
||||
|
||||
Reference in New Issue
Block a user