javascript - Turn off Touchswipe on Div -



javascript - Turn off Touchswipe on Div -

building site each swipe makes site transition between full-screen-sized divs. actual framework built have each full-sized divs take total viewport no overflow. nature of framework. however, have interior div has overflow content can scrolled. however, when site detects touchswipe or down, transitions next screen, versus letting scroll on overflow div.

is there way turn off touchswipe on div , allow normal scrolling action?

can provide code illustration if needed

assuming you're using ramp interactive's touchswipe, looks can add together event handler scrolling div stop propagation of swipe event:

$(function() { $("#yourdiv").swipe( { swipestatus:function(event, phase, direction, distance, fingercount) { homecoming false; } }); });

edit:

actually, looks like can add together .noswipe class div instead.

javascript jquery swipe

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -