mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 05:57:32 -07:00
lfg
This commit is contained in:
parent
06ed517e0c
commit
2854f1461c
2 changed files with 11 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "12.118.1-calc.2-beta.2-rc.7",
|
||||
"version": "12.118.1-calc.2-beta.2-rc.8",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -114,7 +114,11 @@ const rootEl = $ref<HTMLElement>();
|
|||
let queue = $ref(0);
|
||||
const src = $computed({
|
||||
get: () => defaultStore.reactiveState.tl.value.src,
|
||||
set: (x) => saveSrc(x),
|
||||
set: (x) => {
|
||||
saveSrc(x);
|
||||
console.log('set src', x);
|
||||
syncSlide(x);
|
||||
},
|
||||
});
|
||||
|
||||
watch($$(src), () => (queue = 0));
|
||||
|
@ -277,11 +281,11 @@ function setSwiperRef(swiper) {
|
|||
}
|
||||
|
||||
function onSlideChange() {
|
||||
if (swiperRef) {
|
||||
const index = swiperRef.activeIndex;
|
||||
saveSrc(timelines[swiperRef.activeIndex]);
|
||||
swiperRef.slideTo(index - 1, 0);
|
||||
}
|
||||
saveSrc(timelines[swiperRef.activeIndex]);
|
||||
}
|
||||
|
||||
function syncSlide(index) {
|
||||
swiperRef.slideTo(index);
|
||||
}
|
||||
|
||||
</script>
|
||||
|
|
Loading…
Reference in a new issue