snap cursor to center of HMD tools dialog when shown, or app when the dialog is hidden