Closed pappkamerad closed 6 months ago
i assume, it is due to center() not being called after inputs changed (https://github.com/daelmaak/ngx-gallery/blob/master/libs/gallery/src/lib/components/viewer/viewer.component.ts#L274)
center()
my workaround currently is to call gallery.select(0) after we updated the items but this slides the images once :(
gallery.select(0)
items
Thanks. I wrote a test and created a repo to reproduce it but no success. Can you please elaborate or create a reproduction stackblitz?
I reproduced it in loop mode 👍
loop
i assume, it is due to
center()
not being called after inputs changed (https://github.com/daelmaak/ngx-gallery/blob/master/libs/gallery/src/lib/components/viewer/viewer.component.ts#L274)my workaround currently is to call
gallery.select(0)
after we updated theitems
but this slides the images once :(