I don't see anything wrong with that at first glance...
Are you sure there's not an unrelated problem? Perharps another frame on top of that obstructing the mouse?
What does /framestack have to say?
What happens if you put some debug prints in the script handlers?
|