[Solved]A Strange window bug

I am working on building a game with lwjgl and slick2d as a wrapper for it and I have been experiencing a weird glitch. the game is a 2d based sidescroller and it applys a naturally gravity to everything in the world,but when I grab the window tab at the top and move it around to reposition the window the player clips through the floor. I have tried to do a updated pausing when the window is not in focus, but the window remains in focus while I am dragging around the window. I know I could fix it by making it a fullscreen game but I would like to have the option available.

Any help would be nice.

That happens because your delta-value doesn’t update during the time you are dragging the window. And as you let go the delta value jumps to a high amount.

Simply make sure that your delta doesn’t go over a certain amount in your update method.

if ( delta > 0.1 ) delta = 0.1;

That should do the trick !

Thanks for th help I was thrown for a loop with this one, and I think a lot of people who looked it over felt the same way