I have some scrolling after keystrokes, keystrokes. So it looks like this:
$(document).keydown(function(e) {
e.stopPropagation();
if (e.keyCode === 40) {
} else if (e.keyCode === 38) {
}
});
Everithing works fine, but when scrolling im, keystrokes with my scrolling divs are also a whole page. Is there any way to stop the scrolling of this body?
Lukas source
share