From 45137bf94b61ce8198d46cf1fba46fe59a6df1a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nh=C3=A2n?= Date: Mon, 8 Aug 2022 20:07:19 +0700 Subject: [PATCH] fix janky dragging, mostly on Windows --- .gitignore | 1 + main.go | 1 + 2 files changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 94c0d5f..7db2ff1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /dist /icon256.ico /icon512.png +/*.exe diff --git a/main.go b/main.go index 554bb9e..65b363a 100644 --- a/main.go +++ b/main.go @@ -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