diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-07-04 12:19:44 -0400 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:23 +0200 |
| commit | 1ef796e47bb55b4ec4b105cf59f0c4eafe89a682 (patch) | |
| tree | 1cf04545aae20953af8864e4f069e68962b1e650 /go | |
| parent | 4c0af1653b804df6de2ede77da36d1fa9a0b5911 (diff) | |
| download | muhqs-game-1ef796e47bb55b4ec4b105cf59f0c4eafe89a682.tar.gz muhqs-game-1ef796e47bb55b4ec4b105cf59f0c4eafe89a682.zip | |
scale pan distance for Scroll
Diffstat (limited to 'go')
| -rw-r--r-- | go/ui/update.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/ui/update.go b/go/ui/update.go index 81d060ff..8d859595 100644 --- a/go/ui/update.go +++ b/go/ui/update.go @@ -83,7 +83,7 @@ func Update() error { if TouchManager.pan != nil { pan := TouchManager.pan iX, iY := pan.Incremental() - AppendInput(InputEvent{Pan, pan.originX, pan.originY, DistanceCtx{int(iX), int(iY)}}) + AppendInput(InputEvent{Pan, pan.originX, pan.originY, DistanceCtx{int(iX) / 10, int(iY) / 10}}) } |
