Hack to prevent the right menu being opened with panning