Fixed: do not toggle offscreen when text input is clicked