title: Need to disable mousewheel when cursor enters swf object
body: <p>Basically the page runs a swf game. Need to disable the mousewheel function if the cursor is inside the game.</p>
  
  <p>This is what I tried</p>
  
  <pre><code>jQuery(document).ready(function(){
    jQuery('#gameplay-container').mouseenter(function(){
      document.onmousewheel = function(){
        return false
      }
    });
    jQuery('#gameplay-container').mouseout(function(){
      document.onmousewheel = function() {
        return true;
      }
    });
  });
  </code></pre>
  
  <p>doesn't seem to work at all. I did find a way to disable the scrolling when you hovered over a div, but once the flash object loaded it stopped functioning. Flash wmode is set to transparent but have tried opaque as well. #gameplay-container is the div that contains the flash object.</p>