This is kind of confusing, I also tried searching online and was unable to find anything in reference to "Losing Your Button", so I'm sure someone will be able to answer this correctly, despite my confusing way of asking this.
Ok, so honestly I should know this, and this happened to me months ago, and I've thought about it occasionally, and it's driving me nuts.
I went to a new place to play poker before the virus hit, and I was sitting in the 5 seat. I got ino a hand with the 4th and 6th seat. I had QQ, after the river I pushed all-in and they both called... the 6th seat had AA, and the 4th seat had a shitty straight with 6/9... after observing for about an hour or so, the 4th seat was hitting hands with trash cards, and had a pretty big stack, close to 1k at a 1/2 table. All the players were good, and there was a lot of action, so I was waiting to get into a hand with the 4th seat eventually, but then I started thinking about his position (Not where the Button currently is, but how the cards are falling in his favor more times than none, possibly due to drawing the position for the button before the game, and maybe he won... idk, I didn't get there to see who did, I'm just saying, he was hitting a lot of hands, and personally I usually call that good position, even though I not referring to the position of the player where the button is currently located...) and maybe I don't want to actually do that unless I hit the nuts early or have a good draw to the nuts against him, I just want my $300 back from this donkey playing 6/9 on a $40 pre-flop raise. After this hour or so went by, the 6th seat was still on tilt, and she was losing close to $1200 in buy-ins by this point, and I felt she was pissed off at me for her aces being cracked, because I was the one who was betting out and basically forced her to go all in or fold with Aces high when a possible set of straight is out there. It was $40 pre-flop so she should be mad at the donkey... not me... anyway I wasn't really sweating it. Eventually she moved to the 9 seat.
So, after she did, she forced a mis-deal... this is where my question gets tricky. I feel she did this on purpose to force position over to her. What I mean is the 8 seat was also hitting hands, and she was on tilt. So by doing that, she would basically be getting the cards that the 8 seat was getting from now on after the mis-deal. The table was full at this point. And the new player in the 6th seat looked at me and said you just lost your button, and I was confused. I didn't say anything, even though I had f***ing KK during that mis-deal, and when I was thinking, I though hmmm well that means I'll be getting the 4th seats' position now, so maybe that's not so bad. Am I thinking of this correctly? After a few hours I got KK, and went all in pre-flop and got 1 caller, the 6th seat, and he had AA and won the hand. So... really if she didn't force a mis-deal, I would have had AA against the 4th seat (donkey) KK and would have won the hand. After the mis-deal, the dealer took all the cards, and moved the button, and a new hand was dealt. So think of it as you having the button, and a mis-deal occurs, and the button is moved to the next player, and new cards are dealt. Rules change from place to place, and there the button got moved after the mis-deal. There, if a player gets up with chips in front of him, they still deal the cards to the seat, and the dealer mucks them one the action get to the seat. So what she did, because I was paying attention, is she looked at her first card and didn't like it, and she scooted to her right a little bit, and when the dealer dealt the second card to the 8 seat she caught it before it got there and looked at it real fast and then the dealer dealt her, the second card and they both saw that it was a mis-deal and the 9 seat said oh sorry I was kinda to the right a little bit and didn't realize I picked up the wrong card.... so I think I may have answered my own question, because at a casino, or most places, if there is a mis-deal the button remains and new cards are dealt, there it moves... for whatever f***ing reason and I think she knew that, and was just trying any angle she could play legally to try and get different cards because she was stuck and digging deeper