While working with certain mouse procedures, such as MouseExited() and MouseEntered(), if you attempt to grab the icon-x and icon-y, the values will always be null. But, if you were to use Click(), the icon-x and icon-y will provide you with the correct value.
Code Snippet (if applicable) to Reproduce Problem:
atom
MouseExited(atom/t, control, params)
params = params2list(params)
var/pixelx = text2num(params["icon-x"])
var/pixely = text2num(params["icon-y"])
world<<"MouseExited: ([pixelx], [pixely])"
Click(atom/t, control, params)
params = params2list(params)
var/pixelx = text2num(params["icon-x"])
var/pixely = text2num(params["icon-y"])
world<<"Click: ([pixelx], [pixely])"
MouseEntered(atom/t, control, params)
params = params2list(params)
var/pixelx = text2num(params["icon-x"])
var/pixely = text2num(params["icon-y"])
world<<"MouseEntered: ([pixelx], [pixely])"
Expected Results:
That the values of the icon-x and icon-y will not be null while using MouseEntered() and MouseExited().
Actual Results:
Click: (18, 7)
MouseEntered: (, )
MouseExited: (, )
Does the problem occur:
This problem occurs every time I move the mouse.