Skip to content

Commit

Permalink
Fix playlist when view is offsetted
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoos committed Sep 24, 2024
1 parent 79aff82 commit 57c39b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ui_playlist.ml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ let make ~reset_playlist ~fetch ?scroll_target (view : Lwd_view.ordered) =
{ Table.table = { columns = columns () }; row_height = Em 4. }
in
let data_source =
let total_items = view.item_count in
let total_items = Lwd.map2 view.item_count ~f:( - ) view.start_offset in
let fetch = Lwd.map ranged ~f:(fun ranged i -> fetch ranged i) in
let render = Lwd.pure (render ranged) in
{ Table.Virtual.total_items; fetch; render }
Expand Down

0 comments on commit 57c39b4

Please sign in to comment.