I'm trying to learn how to make my own GUI so I've been fooling around with some of the frame code. I haven't had many issues figure the syntax out, but I'm confused about a movable frame that I created. I added two scripts to the frame with the following code:
Code:
HappyFrame:SetScript("OnMouseDown", function() HappyFrame:StartMoving() end);
HappyFrame:SetScript("OnMouseUp", function() HappyFrame:StopMovingOrSizing() end);
The frame moves happily around the screen when I drag it with left click, but when I right click on it, it jumps in the last direction that my mouse moved. Is there a reason why it would jump when I right click on it even though I never set it to do so? Thanks for the help!