Fix offscreen input filtering