fix frame shift calc. in swipe