mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Don't scroll when loading more items
This commit is contained in:
@ -76,21 +76,10 @@ update _ msg model =
|
||||
|
||||
else
|
||||
let
|
||||
firstNew =
|
||||
Data.Items.first list
|
||||
|
||||
scrollCmd =
|
||||
case firstNew of
|
||||
Just item ->
|
||||
Ports.scrollToElem item.id
|
||||
|
||||
Nothing ->
|
||||
Cmd.none
|
||||
|
||||
newModel =
|
||||
{ model | results = Data.Items.concat model.results list }
|
||||
in
|
||||
( newModel, scrollCmd, Nothing )
|
||||
( newModel, Cmd.none, Nothing )
|
||||
|
||||
SelectItem item ->
|
||||
( model, Cmd.none, Just item )
|
||||
|
Reference in New Issue
Block a user