fix a bug where view continues to pan when window lost focus while panning
This commit is contained in:
@@ -107,6 +107,10 @@ protected:
|
||||
void paintGL() override;
|
||||
void keyPressEvent(QKeyEvent* event) override;
|
||||
void keyReleaseEvent(QKeyEvent* event) override;
|
||||
// Key-up never arrives for a key that was still held when focus moved away —
|
||||
// to a modal dialog, another widget, or another window. Any held action would
|
||||
// otherwise stay held forever, so focus loss drops all of them.
|
||||
void focusOutEvent(QFocusEvent* event) override;
|
||||
void mousePressEvent(QMouseEvent* event) override;
|
||||
void mouseMoveEvent(QMouseEvent* event) override;
|
||||
void mouseReleaseEvent(QMouseEvent* event) override;
|
||||
|
||||
Reference in New Issue
Block a user