Skip to content

useWindowScroll custom window option not working #2544

@94726

Description

@94726

Describe the bug

When using the window option of useWindowScroll, I'd expect the scroll listener to also be applied to that exact window. This doesn't seem to be the case right now.

I'll submit a pull request for this issue :)

Reproduction

https://stackblitz.com/edit/vitejs-vite-jr6hru?file=src/App.vue

System Info

System:
    OS: Linux 5.10 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 2700X Eight-Core Processor
    Memory: 1.81 GB / 7.74 GB
    Container: Yes
    Shell: 3.5.1 - /usr/bin/fish
Binaries:
    Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
    npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions