helenginn / mabscape

abmapping
0 stars 0 forks source link

After selecting residue, no rotation of the protein possible #4

Closed funkefel closed 2 years ago

funkefel commented 3 years ago

This may be caused by alt-tabbing out of the window and back in again. Also happend after refining the mesh.

helenginn commented 3 years ago

This sounds like a Qt::setFocus, Qt::setFocusPolicy or similar issue, taking focus away from the SurfaceView but not returning it

funkefel commented 2 years ago

ec14c33 The _gl needed to accept Focus of the window in order to be able to rotate the structure again.

funkefel commented 2 years ago

af3b961 Previous fix destroyed the ability to highlight or select antibodies, which was a cause of the SlipGL accepting focus. The issue that broke rotation was, that upon exiting the window with Alt+Tab, the variable _controllPressed was constantly set to true, which disabled most of the hovering commands and rotation of the protein. This could be resolved by pressing the Alt key. Now the programm automatically sets the _controllPressed to false, when it regains focus.