I have an issue which i can seem to solve. The function that i am using is to calculate which of all module-objects are closest to the current target you are dragging.
To test it i have tried different debug texts and i even set the nearest target opacity to 50. The crazy thing is that the function seems to work... but only one time and this is what i can't figure out. While I'm dragging, why doesn't the nearest target update? It only does it one time when i start the drag event.
It's probably something simple but I've been staring at this code since yesterday and i can't find what's wrong. <img src="smileys/smiley26.gif" border="0" align="middle" />
<img src="http://i.imgur.com/OovpzwD.png" border="0" />
The code enters the function over and over but the nearest target seems to only be set once. Anyways, any help would be awesome.