Skip to content

Commit

Permalink
Small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
esimov committed Nov 16, 2023
1 parent 342812d commit 52549c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hud.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ func NewHud() *Hud {
{title: "Drag force", min: 1.1, value: 2, max: 15},
{title: "Gravity", min: 100, value: 250, max: 500},
{title: "Elasticity", min: 10, value: 30, max: 50},
{title: "Stiffness", min: 0.95, value: 0.98, max: 0.99},
{title: "Tear distance", min: 5, value: 20, max: 80},
{title: "Easiness", min: 0.95, value: 0.98, max: 0.99},
{title: "Tear distance", min: 5, value: 15, max: 50},
}
for idx, s := range sliders {
hud.addSlider(idx, s)
Expand Down
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,6 @@ func loop(w *app.Window) error {
Keys: key.NameEscape + "|" + key.NameCtrl + "|" + key.NameAlt + "|" + key.NameSpace + "|" + key.NameF1,
}.Add(gtx.Ops)

pointer.CursorPointer.Add(gtx.Ops)

if mouse.getLeftButton() {
deltaTime = time.Since(initTime)
mouse.setForce(deltaTime.Seconds() * 5)
Expand Down

0 comments on commit 52549c2

Please sign in to comment.