Some issues with scroll() method.
Hi everyone,
I have some problems with the scroll() methods and the css property overflow.
I'm making a site with a special navigation, the width and the height of the document fit well your browser and you can access other pages with the arrows.
So I set the css of the
<body> to
overflow: none;
In Firefox there is no problems (I think with IE too), no scrollbar and no scrolling possible.
Well, in Chromium (6) and Opera (10.60), you can scroll without the scrollbar, it's bad, very bad :'(
So I tried to do something simple :
- $(window).scroll(function (e) {
- return false;
- });
I don't work. After this I just wanted to see the event of this method, I replace
return false by
console.log(e).
In Chromium, no result, in Opera the event appear in the console.
After this, I removed
overflow: none; of my
<body> and I repeat the operation.
The object appear in both.
I don't know what the problem is, I just want to point it, maybe it could help someone :)
Btw, if someone know how to disable scrolling in jQuery (for Opera and Chome :/).