AnsweredAssumed Answered

onmouseover on esri js api 4

Question asked by jordan.em on Sep 14, 2016
Latest reply on Sep 14, 2016 by jgrayson-esristaff

How to handle the mouseover on mapview, map any object and use event.x and y to display the map info 

i tried the following 

view.container.onmouseover = function (event) {
var sp = new ScreenPoint();
sp.x = event.x;
sp.y = event.y;
view.hitTest(sp).then(function (response) {
var graphics = response.results;
graphics.forEach(function (graphic) {


but if the map is contained on page.that has header or another html element the event of x ,y is not correct