Ignore:
Timestamp:
Oct 22, 2006, 9:17:03 PM (13 years ago)
Author:
David Sheldon
Message:

Might be a fix for ticket:34, also made the report bug page more clear about its broken state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/index.html

    r131 r133  
    9494  e = YAHOO.util.Event.getEvent(e);
    9595  var img = YAHOO.util.Event.getTarget(e);
    96         var x = xOffset + YAHOO.util.Event.getPageX(e) - img.offsetLeft;
    97         var y = img.height-(YAHOO.util.Event.getPageY(e) - img.offsetTop);
     96  var imgPos = YAHOO.util.Dom.getXY(img);
     97
     98        var x = xOffset + YAHOO.util.Event.getPageX(e) - imgPos[0];
     99        var y = img.height-(YAHOO.util.Event.getPageY(e) - imgPos[1]);
    98100
    99101        var s6x = Math.round(x/3);
Note: See TracChangeset for help on using the changeset viewer.