Skip to content

Commit

Permalink
fix janky dragging, mostly on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanb committed Aug 8, 2022
1 parent ae4e5ad commit 45137bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/dist
/icon256.ico
/icon512.png
/*.exe
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45137bf

Please sign in to comment.