How long should a swipe action be to open a sidebar?

How long/quick should a left or right movement be in order to indicate it's a swipe rather than user scrolling the page?

I was thinking, if user isn't scrolling in the y axis and performed touch start, touch move and touch end actions (in that order) and user moved more than 3% of the screen's width, check if: those actions happened quicker than 100ms, in which case, trigger swipe