Monday, April 16, 2012

Disable scrolling on mousedown-mousemove (Jquery / javascript)

So i want to disable the window scrolling on mousedown+mousemove, i searched everywhere, but i can't find anything.



body { overflow: hidden } doesn't work, you can still scroll if you press the mouse, and you go down.



The problem i have, is that on clicking on an image thumb, it opens a positioned absolute div (100% height & width and a 50% black transparent .png) that shows the original image, and when i press the left mouse button and i move down, all the items behind the absolute div, start to scroll down.



Thanks in advance.



PS: I apologize if i made any grammar or spelling mistake. (English isn't my native language)





No comments:

Post a Comment