Page drop down when selecting a variant product

Topic summary

Main issue: Selecting different product variants causes the page to jump/drop down.

Context: Merchant using the Sense 10.0.0 Shopify theme suspects code related to “scrollIntoView,” but couldn’t find it in global.js. A screenshot was referenced, but it isn’t essential to understanding the problem.

Key technical note: scrollIntoView is a JavaScript method that scrolls an element into the visible area; if triggered on variant change, it can make the page move unexpectedly.

Latest update: A respondent advised checking media-gallery.js instead of global.js for the scrollIntoView implementation.

Action items:

  • Search media-gallery.js for scrollIntoView and adjust or disable the behavior tied to variant selection.
  • Test variant changes after modifying the file to confirm the page no longer jumps.

Status: The original poster acknowledged the tip, but no confirmation of a fix; discussion appears unresolved/ongoing.

Summarized with AI on January 3. AI used: gpt-5.

Hello guys,

When we click on different variant of all my product, the page is dropping down all the time.

I know this is something with “scrollintoview” in the Edit Code but I don’t have it in my global.js

This is what I have :

Im using Sense 10.0.0

Thank you

Instead of global.js, try looking in media-gallery.js instead.

1 Like

Thank you very much !