add duration restriction to define swipe vs scroll