some refactor to make button feel smoother when touch over the corners
add switch button for custom button enabling boucing or not