i'm currently working on the project of mine and i have made a horizontal scrolling website.
what the problem seems to be is that when i have a scrollable div (vertically) in my horizontal webpage i can't scroll it vertically anymore.
this is the website: ShareApe 3.0
i have tried to make a mouseover event to override this scrip but i cant get it to work:
<script>
$(document).ready(function(){
$(".main").onepage_scroll({
sectionContainer: "section",
responsiveFallback: 600
});
});
</script>
so what i want to do is when your mouse hovers over the file selection "Drag & Drop files" part of the website i want this function to be disabled.
Manny thanks for your time!
update:
i have used this working code:
<script>
$(document).ready(function(){
$('#fileUpload').on('mousewheel', function(e) {
e.stopPropagation();
});
});
</script>
its working but not for Firefox.
so i have tried to add some code and its not working for me:
<script>
$(document).ready(function(){
$('#fileUpload').on('mousewheel', function(e) {
e.stopPropagation();
});
});
var mousewheelevt=(/Firefox/i.test(navigator.userAgent))? "DOMMouseScroll" : "mousewheel" //FF doesn't recognize mousewheel as of FF3.x
if (slideshow.attachEvent) //if IE (and Opera depending on user setting)
slideshow.attachEvent("on"+mousewheelevt, rotateimage)
else if (slideshow.addEventListener) //WC3 browsers
slideshow.addEventListener(mousewheelevt, rotateimage, false)
</script>
Patrick Falize