Quote:
Originally Posted by iBeatz
I suppose the only thing that could be changing the output in my onMouseDown event is the first element in the scrollpos array of the ScrollCtrl the drawing panel is inside, as I'm adding it to the mouse_x parameter to find where on the drawing panel was clicked, but I've checked and made sure the horizontal scroll bar was at its furthermost left when I clicked the panel, but it still outputs 30.
I'm not sure how my script goes, as I can't check it right now, but that's the only other thing that could be affecting it.
Any ideas?
|
You're going to have to give us more. The snippet you've shown works, and it's really hard to debug code that we can't see.