close when open or opening, open otherwise.
void toggle() { if (controller.target >= 1) { close(); } else { open(); } }