Fix coordinates demo.

This commit is contained in:
Antoine Vandecreme 2015-05-09 12:49:32 -04:00
parent f57b957390
commit f5ede70018

View File

@ -50,9 +50,9 @@
return point.x.toPrecision(4) + "," + point.y.toPrecision(4); return point.x.toPrecision(4) + "," + point.y.toPrecision(4);
} }
var onMouseTrackerMove = function(eventSender, eventData) { var onMouseTrackerMove = function(event) {
var viewerX = eventData.position.x; var viewerX = event.position.x;
var viewerY = eventData.position.y; var viewerY = event.position.y;
var windowPoint = new OpenSeadragon.Point(viewerX, viewerY); var windowPoint = new OpenSeadragon.Point(viewerX, viewerY);
$("#windowPosition").text( pointToString(windowPoint)); $("#windowPosition").text( pointToString(windowPoint));