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/tiles/allmaps.html

    r123 r133  
    2424  e = YAHOO.util.Event.getEvent(e);
    2525  var img = YAHOO.util.Event.getTarget(e);
    26         var x = xOffset + YAHOO.util.Event.getPageX(e) - img.offsetLeft;
    27         var y = img.height-(YAHOO.util.Event.getPageY(e) - img.offsetTop);
     26  var imgPos = YAHOO.util.Dom.getXY(img);
     27        var x = xOffset + YAHOO.util.Event.getPageX(e) - imgPos[0];
     28        var y = img.height-(YAHOO.util.Event.getPageY(e) - imgPos[1]);
    2829
    2930        var s6x = Math.round(x/6);
Note: See TracChangeset for help on using the changeset viewer.