HitTestResult on MouseUp

Oystein Bjorke 6 years ago 0
This discussion was imported from CodePlex

Tech_Junkie wrote at 2012-05-08 16:03:

Currently the MouseDown event includes the HitTestResult element, but the MouseUp (or MouseMove) don't seem to have it. I can also not find in the source if I am mistaken. 

Would it be possible to include the HitTestResult element in the MouseUp event, or is there an easy way of calculating the closest element myself?

objo wrote at 2012-05-11 00:16:

You are right, currently the hit testing is only performed on the mouse down event. Similar code can be added to the mouse up event, will consider adding it later. See the source code for the mouse down event how you can find the closest element, it should be possible to copy/paste the code.