@streamscloud/embeddable 3.2.7 → 3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/streams/stream-player/stream-player-buffer.svelte.d.ts +1 -1
- package/dist/streams/stream-player/stream-player-buffer.svelte.js +2 -2
- package/dist/ui/player/cmp.player-slider.svelte +2 -2
- package/dist/ui/player/player-buffer.svelte.d.ts +1 -1
- package/dist/ui/player/player-buffer.svelte.js +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ export declare class StreamPlayerBuffer implements IPlayerBuffer<StreamPageViewe
|
|
|
8
8
|
readonly canLoadNext: boolean;
|
|
9
9
|
readonly canLoadPrevious: boolean;
|
|
10
10
|
readonly navigationDisabled: boolean;
|
|
11
|
-
readonly animationDuration =
|
|
11
|
+
readonly animationDuration = 300;
|
|
12
12
|
private _pagesLoader;
|
|
13
13
|
private _currentIndex;
|
|
14
14
|
private _loaded;
|
|
@@ -12,7 +12,7 @@ export class StreamPlayerBuffer {
|
|
|
12
12
|
canLoadNext = $derived(this.currentIndex < this.loaded.length - 1);
|
|
13
13
|
canLoadPrevious = $derived(this.currentIndex > 0);
|
|
14
14
|
navigationDisabled = $derived(!this.canLoadNext && !this.canLoadPrevious);
|
|
15
|
-
animationDuration =
|
|
15
|
+
animationDuration = 300;
|
|
16
16
|
_pagesLoader;
|
|
17
17
|
_currentIndex = $state(-1);
|
|
18
18
|
_loaded = $state.raw([]);
|
|
@@ -23,7 +23,7 @@ export class StreamPlayerBuffer {
|
|
|
23
23
|
const payload = await graphql
|
|
24
24
|
.query(GetStreamPagesDocument, {
|
|
25
25
|
input: {
|
|
26
|
-
limit:
|
|
26
|
+
limit: 10,
|
|
27
27
|
continuationToken,
|
|
28
28
|
filter: {
|
|
29
29
|
streamId
|
|
@@ -5,7 +5,7 @@ let { buffer, children, on } = $props();
|
|
|
5
5
|
let slidesRef;
|
|
6
6
|
let sliderHeight = $state(0);
|
|
7
7
|
let swipeTransition = $state(0);
|
|
8
|
-
let cssAnimationDuration = $state(buffer.animationDuration
|
|
8
|
+
let cssAnimationDuration = $state(buffer.animationDuration);
|
|
9
9
|
let resizeObserver;
|
|
10
10
|
let activeIndex = $state.raw(buffer.currentIndex);
|
|
11
11
|
const actualTransition = $derived(-sliderHeight * activeIndex);
|
|
@@ -81,7 +81,7 @@ onMount(() => {
|
|
|
81
81
|
if (e.deltaY < 0 && buffer.canLoadPrevious) {
|
|
82
82
|
buffer.loadPrevious();
|
|
83
83
|
}
|
|
84
|
-
}, buffer.animationDuration
|
|
84
|
+
}, buffer.animationDuration));
|
|
85
85
|
slidesRef.addEventListener('transitionend', (e) => {
|
|
86
86
|
if (e.target !== slidesRef) {
|
|
87
87
|
return;
|
|
@@ -8,7 +8,7 @@ export declare class PlayerBuffer<T extends {
|
|
|
8
8
|
readonly canLoadNext: boolean;
|
|
9
9
|
readonly canLoadPrevious: boolean;
|
|
10
10
|
readonly navigationDisabled: boolean;
|
|
11
|
-
readonly animationDuration =
|
|
11
|
+
readonly animationDuration = 300;
|
|
12
12
|
private _currentIndex;
|
|
13
13
|
private _loaded;
|
|
14
14
|
private loadMoreFn;
|
|
@@ -6,7 +6,7 @@ export class PlayerBuffer {
|
|
|
6
6
|
canLoadNext = $derived(this.currentIndex < this.loaded.length - 1);
|
|
7
7
|
canLoadPrevious = $derived(this.currentIndex > 0);
|
|
8
8
|
navigationDisabled = $derived(!this.canLoadNext && !this.canLoadPrevious);
|
|
9
|
-
animationDuration =
|
|
9
|
+
animationDuration = 300;
|
|
10
10
|
_currentIndex = $state(-1);
|
|
11
11
|
_loaded = $state.raw([]);
|
|
12
12
|
loadMoreFn;
|