merged stashed changes into main
This commit is contained in:
parent
27898f9b1d
commit
2d0292fea5
17 changed files with 430 additions and 50 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue