I understand that some devices make pushing smaller buttons harder to do precisely. Ask support about the issue but I doubt they will change the design because of that
Resigning by mistake - bad site design

Oh YES! At least somebody who had the same problem as I had. don´t musunderstand me, I´m not mischievous or happy about your problem (which is also mine!), but up to now I was not so shure wheather I´m a bit stupid or not. I discribed the same problem here: https://www.chess.com/forum/view/site-feedback/i-love-chess-com-but-some-things-are-not-that-good-56324314 and, for shure, I wrote it to the stuff. I lost three or vour games out of this ridicioulus problem. And there would be an easy solution: just remove these resign and draw buttons from the analysis!!!! It is absolutely useless there! If I find out via the analysis tool that my game is lost, there is absolutely no problem to go back to the main site and resign there! Or make an offer for a draw. Meanwile I totaly stopped working on ongoing games with my tablet, because it is sooooo frustrating to hit the resign butten by accident and lose a game I might have won. Hope very much that more people write to the stuff till they open their ears (it worked properly with the problem of "adjusting" the ratings some days ago. So many people disliked it, that the stuff could do only one thing. Going back.).

Absolutely agree. Just lost another won game by doing exathis.
Resign function serves no purpose in analyze mode.

So we should all write to the stuff to change that setting and remove the buttons. I already did it!

I kept pressing the moves on top of the resign button and since I kept doing it I accidentally pressed the resign button for no reason

calm down, i meant that the chess.com support will fix it
How do you know?

Happened to me again for the second time today.
You can ask chess.com to reopen the game. Having a lot of support requests for reopening these type of games might cause them to fix the bad UI design sooner.

Ok, I've never heard bevore that you can reopen a game. new information to me.
and I would strongly beg everybody who have the same calamities like we to write to the stuff. only if lots of people do this, it will help. we have seen this with these upgrading the points some weeks ago. after literally hundreds of angry replies they stoped and reversed it nearly immediately.
When playing on the website, using a touch screen device, it is easy to resign by mistake. Even with "Confirm Resign" on.
The back button of the analysis is about 8 pixels away from the resign button. The confirm resign button is positioned exactly on top of the back button.
Clicking back twice on the analysis, especially on a touch screen, runs the risk of your finger triggering the resign button below, and then confirming the resign. I've done it loads. Very annoying.
The obvious easy solution for the designers of the site is to position the resign confirm button in the middle of the screen.
On the assumption that this won't get fixed in a hurry, I have a workaround fix if this is useful to anyone.
1 Install Tampermonkey on chrome.
2 Create this script
// ==UserScript==
// @name hide-resign
// @include *chess.com*
// @description Hide the resign button from the page
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant GM_addStyle
// ==/UserScript==
waitForKeyElements (".daily-game-footer-resign", hideButton);
function hideButton (jNode) {
$('.daily-game-footer-resign').hide();
$('.daily-game-footer-draw').hide();
}
3 The resign and draw buttons are removed
4 If you do want to resign then you must disable the script in tampermonkey and refresh the page.
I hope this helps