Bug 7095 - Table blocking mouse wheel even if empty

Hey, this code should work for both axis. I've tested it but of course please retest it again after me :)