Fix panning not stopping on key up in automap