Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #9920: event.js.patch

File event.js.patch, 0.7 kB (added by RQuadling, 10 months ago)

Patch to fix Event.pointer on IE when dealing with pre dom:loaded custom events (compatible with changeset 9060)

  • event.js

    old new  
    7474      var docElement = document.documentElement, body = document.body; 
    7575      return { 
    7676        x: event.pageX || (event.clientX +  
    77           (docElement.scrollLeft || body.scrollLeft) - 
     77          (docElement.scrollLeft || (body ? body.scrollLeft : 0)) - 
    7878          (docElement.clientLeft || 0)), 
    7979        y: event.pageY || (event.clientY +  
    80           (docElement.scrollTop || body.scrollTop) - 
     80          (docElement.scrollTop || (body ? body.scrollTop : 0)) - 
    8181          (docElement.clientTop || 0)) 
    8282      }; 
    8383    },