summaryrefslogtreecommitdiff
path: root/Pages/Gallery.razor
diff options
context:
space:
mode:
Diffstat (limited to 'Pages/Gallery.razor')
-rw-r--r--Pages/Gallery.razor8
1 files changed, 5 insertions, 3 deletions
diff --git a/Pages/Gallery.razor b/Pages/Gallery.razor
index c037979..704b73d 100644
--- a/Pages/Gallery.razor
+++ b/Pages/Gallery.razor
@@ -29,9 +29,8 @@
<img src="/media/thumb/@(media.Guid)?h=200" width=@width height="200"/>
</a>
}
+ <div id="canary" style="height:1px;"></div>
</div>
-
- <div id="canary"/>
}
<script suppress-error="BL9992">
@@ -42,7 +41,10 @@
await dotNetObject.invokeMethodAsync('LoadMedia', false);
}
},
- { threshold: [1] });
+ {
+ root: document.getElementById('content'),
+ threshold: 0
+ });
scrollObserver.observe(document.getElementById("canary"));
}
</script>