Skip to content

Commit

Permalink
Merge pull request #976 from Zhwt/patch-1
Browse files Browse the repository at this point in the history
Fix app crash when clicking spaces after slide page items in presentation demo.
  • Loading branch information
rivo committed May 24, 2024
2 parents 0ac5f73 + ab1a0c7 commit a5d0232
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demos/presentation/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ func main() {
SetRegions(true).
SetWrap(false).
SetHighlightedFunc(func(added, removed, remaining []string) {
if len(added) == 0 {
return
}

pages.SwitchToPage(added[0])
})

Expand Down

0 comments on commit a5d0232

Please sign in to comment.