added ability to disallow showing sidebar by pan gesture