Shopify / dawn

Shopify's first source available reference theme, with Online Store 2.0 features and performance built-in.
Other
2.48k stars 3.32k forks source link

3D Models can't be rotated #1758

Open mikkoh opened 2 years ago

mikkoh commented 2 years ago

Describe the current behavior 3D models become unresponsive and can't be rotated.

Steps to reproduce:

Describe the expected behavior

3D models always can be rotated

Version information (Dawn, browsers and operating systems)

Possible solution

Additional context/screenshots

Here's a video of the behaviour:

https://user-images.githubusercontent.com/496903/171050188-7a2cccad-daf2-40b8-b2e5-9cad2cbf0003.mp4

melissaperreault commented 2 years ago

@mikkoh Do you have an idea why this is happening?

mikkoh commented 2 years ago

I just checked for some reason the <model-viewer> elements has pointer-events: none added to it.

So theme has some sort of logic that prevents interactions and it breaks when you go back to the model for the second time.

If someone wants to 🎩 you can try this product: https://test-mikkoh.myshopify.com/admin/products/7501296140310