added option to enable or disable selection by tap gesture