diff --git a/terrainrenderer.go b/terrainrenderer.go index 82e7039..ede0654 100644 --- a/terrainrenderer.go +++ b/terrainrenderer.go @@ -63,12 +63,9 @@ func (r *terrainRenderer) Handle(ctx ui.Context, event ui.Event) bool { } } case *ui.MouseButtonUpEvent: - pos := e.Pos() - if pos.In(r.interactBounds) { - if _, ok := r.drag.IsDragging(); ok { - r.game.Terrain.Center = r.isometric.TileInt(r.isometric.Center()) - r.drag.Cancel() - } + if _, ok := r.drag.IsDragging(); ok { + r.game.Terrain.Center = r.isometric.TileInt(r.isometric.Center()) + r.drag.Cancel() } case *ui.MouseMoveEvent: pos := e.Pos()