Update Input.js

Fix issue where overlay interrupts map interaction while hidden.