~nhanb/shark

45137bf94b61ce8198d46cf1fba46fe59a6df1a6 — Nhân a month ago ae4e5ad
fix janky dragging, mostly on Windows
2 files changed, 2 insertions(+), 0 deletions(-)

M .gitignore
M main.go
M .gitignore => .gitignore +1 -0
@@ 1,3 1,4 @@
/dist
/icon256.ico
/icon512.png
/*.exe

M main.go => main.go +1 -0
@@ 194,6 194,7 @@ func handleNonHungryInputs(g *Game) {
		newWinPos := g.WinStartPos.Add(mousePos.Subtract(g.MouseStartPos))
		g.X = newWinPos.x
		g.Y = newWinPos.y
		ebiten.SetWindowPosition(g.X, g.Y)
	}

	g.PreviousMousePos = mousePos