added separate threshold for touch devices