how re-activate scroll after exiting modal?
http://1ne-studio.com/test2/index.html id : test pass : 2015
there link turns modal on @ top-right corner of grey sub-header.
i disabled scroll on body
when modal open adding class on body
<script type="text/javascript"> $("#modal-name").mouseenter(function(){ $("body").css("overflow", "hidden"); $("body").addclass("modal-open"); }).mouseleave(function(){ $("body").removeclass("modal-open"); $("body").attr("overflow", "auto"); $("body").focus(); }); </script>
and disabling parallax scroll in fsvs.js
(controls slidedown , up)
slidedown : function(e) { if ($("body").hasclass("modal-open")) { return false; } if( app.canslidedown() ) { ignorehashchange = true; app.slidetoindex( (currentslideindex+1), e ); } else { scrolling = false; } }, /** * [slideup description] * @return {[type]} [description] */ slideup : function(e) { if ($("body").hasclass("modal-open")) { return false; } if( app.canslideup() ) { ignorehashchange = true; app.slidetoindex( (currentslideindex-1), e ); } else { scrolling = false; } },
but after exit modal, scroll not turn on..
is there way fix problem?
i found answer..!
i took closer @ problem , found solution this. not best solution since haven't found solution actual problem causing this.. did give me result wanted.
i found out that, after exiting modal, there's 1 way fix parallax , clicking pagenation button on right.
so created
var e = new jquery.event("click"); e.offsetx = 100; e.offsety = 100; $('#fsvs-pagination li.active').trigger(e);
which make browser think clicked pagenation button , re-activate parallax.
i have not yet checked every browser solved issue.
thank of support , please let me know if have found better solution.