@preference-sl/pref-viewer 2.16.0-beta.18 → 2.16.0-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/styles.js +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@preference-sl/pref-viewer",
3
- "version": "2.16.0-beta.18",
3
+ "version": "2.16.0-beta.19",
4
4
  "description": "Web Component to preview GLTF models with Babylon.js",
5
5
  "author": "Alex Moreno Palacio <amoreno@preference.es>",
6
6
  "scripts": {
package/src/styles.js CHANGED
@@ -206,6 +206,12 @@ export const PrefViewerMenu3DStyles = `
206
206
  top: var(--toggle-margin);
207
207
  right: var(--toggle-margin);
208
208
  z-index: 1200;
209
+ /* The closed panel keeps its place in the flex column (opacity:0, not display:none), so
210
+ this host spans the panel's full 300px x 70vh even when only the toggle is showing.
211
+ Left clickable, that empty space is an invisible catcher over the right edge of the
212
+ viewer: it swallowed the XR entry button and orbiting alike. The toggle and the panel
213
+ each flip back to auto when they become usable, so nothing else is needed. */
214
+ pointer-events: none;
209
215
 
210
216
  font-family: var(--font-family);
211
217
  }