Commit a968047a authored by Marcus Hanwell's avatar Marcus Hanwell
Browse files

BUG: Fixed bug 10382 - reset mouse button.

The mouse button variable was not always reset on release, causing weird
behavior in the vtkChartXY panning.
parent 7f410468
......@@ -141,7 +141,7 @@ public:
};
//-----------------------------------------------------------------------------
vtkCxxRevisionMacro(vtkContextScene, "1.14");
vtkCxxRevisionMacro(vtkContextScene, "1.15");
vtkStandardNewMacro(vtkContextScene);
vtkCxxSetObjectMacro(vtkContextScene, AnnotationLink, vtkAnnotationLink);
......@@ -390,8 +390,8 @@ void vtkContextScene::ButtonReleaseEvent(int button, int x, int y)
event);
this->Storage->items[this->Storage->itemMousePressCurrent]->MouseButtonReleaseEvent(event);
this->Storage->itemMousePressCurrent = -1;
event.Button = -1;
}
this->Storage->Event.Button = -1;
}
void vtkContextScene::MouseWheelEvent(int delta, int x, int y)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment