[Client] Improved input event handling

Invalid clicks and drags that originated on the GUI are now ignored
by the input handler that controls the map interaction.