merged stashed changes into main

This commit is contained in:
Andrew Gundersen 2021-02-24 13:12:46 -06:00
commit 2d0292fea5
17 changed files with 430 additions and 50 deletions

View file

@ -50,6 +50,9 @@ export default function useScrollView({ targetId }: { targetId: string }) {
const heightResult = getHeight();
const widthResult = getWidth();
console.log(heightResult);
console.log(widthResult);
if (heightResult) {
// only scroll if renderer scrollStart
if (heightResult > scrollStartHeight) {
@ -66,7 +69,7 @@ export default function useScrollView({ targetId }: { targetId: string }) {
}
onMounted(() => {
scrollTarget = document.getElementById(targetId);
scrollTarget = document.getElementById("targetId");
if (scrollTarget) {
window.addEventListener("wheel", scrollUpdate);
}