Changeset 249 for trunk/common

Show
Ignore:
Timestamp:
12/05/07 01:31:47 (2 years ago)
Author:
ddavis
Message:

Fixed the MT editor resizer by adding the window scroll offsets to the cursor position in safari 3. BugzID:63401

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/common/DOM.js

    r248 r249  
    438438            y: ev.clientY 
    439439        }; 
    440         if ( !navigator.userAgent.toLowerCase().match(/webkit/) ) { 
     440        /* window scroll is fixed in safari 3; devicePixelRatio is a safari 3 only object */ 
     441        if ( !navigator.userAgent.toLowerCase().match(/webkit/) || window.devicePixelRatio ) { 
    441442            var s = DOM.getWindowScroll( window ); 
    442443            pos.x += s.left;