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

Ticket #9920: clientLeft_clentTop.diff

File clientLeft_clentTop.diff, 0.7 kB (added by kangax, 1 year ago)
  • event.js

    old new  
    7171    pointer: function(event) { 
    7272      return { 
    7373        x: event.pageX || (event.clientX +  
    74           (document.documentElement.scrollLeft || document.body.scrollLeft)), 
     74          (document.documentElement.scrollLeft || document.body.scrollLeft) - 
     75          (document.documentElement.clientLeft || 0)), 
    7576        y: event.pageY || (event.clientY +  
    76           (document.documentElement.scrollTop || document.body.scrollTop)) 
     77          (document.documentElement.scrollTop || document.body.scrollTop) - 
     78          (document.documentElement.clientTop || 0)) 
    7779      }; 
    7880    }, 
    7981