Skip to content

BUG | useParallax | tilt and roll values stuck at -0.5/0.5 since v13.4.0 #4845

@HenriqueMendesCoelho

Description

@HenriqueMendesCoelho

Describe the bug

Since upgrading @vueuse/core to version 13.4.0, the useParallax composable always returns stuck values for tilt and roll, -0.5 and 0.5, which do not change with mouse movement. This breaks any parallax effect based on these values.

The issue happens both in my local project and in the official VueUse docs demo for useParallax, where the values remain frozen and the effect does not work.

Image

Attempted fixes:

  • Downgrading to version 13.3.0 immediately fixes the issue.
  • Moving the useParallax call inside onMounted to ensure the ref is defined does not fix the problem.
  • Tested across multiple browsers with the same result.

Reproduction

https://playground.vueuse.org/?vueuse=13.4.0#eNqVU0tv2zAM/iuEMKDdkEfRdRfXHfZAD9thK7odNkCHOg7tKJUlQ6ITB4b/+ygrTnwYCtQnkt9H6uPDnfhc14tdgyIRqc+dqgk8UlODzkx5JwV5KT5Ko6raOoIOHBbQQ+FsBVJwnhQTsPH4kLlM66wdSRefmMTxZW4dXkgjTW6NJ1ir3SOXugsFL02j9dsR6UhpmoGzWveMT2pexiRmpsuolZWxQ1jVOiNkDyBlEuQ6857VFxpbUIz7eY6G0MG28aSKw+ju51wI0cDmaEgRFHFqfIvdxNNBI0e6UD585DLjC+uqBJ6cJX75z+WbLgiGd3D9oV9jyRojN+J/GQ9tnfGnWWT0w3iD9TrhhC3Nc6utm690lj+z0FHnit3S2casIyGBA2pt97ewV2vaJHB9dVW3t7BBVW4ogZvBPelgJfXJ5GZZdgLdIL/vz/F05Sas0HxgDVs7sdLlWCldcndxP0crXU7WJmZ8aLz+QpWLrbeGr3GYthS5rWql0f2sSfF5SMGvxJJS8FHY/fchRq7B40Q5Z4P583/iW9+GmBQPDj26HR/vCaPMlUgRvv/1g6c7ASu7bjSzXwAf0VvdBI2R9oXHz7InvEHtt+FXUab87e9bQuPHpoLQwOwH/vBrfX2h9bPc94ubIU+aXvT/AK/9Qvk=

System Info

@vueuse/core: 13.4.0
Vue: 3.5.17
Quasar: 2.18.1
@quasar/app-vite: 2.1.0
OS: Windows 11
Browser: Chrome 138.0.7204.50, Firefox 140.0.2 e Edge 138.0.3351.55

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas pr

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy