Skip to content

positionAndNormalFromPoint return null if css scale apply #4294

@ngocducdim

Description

@ngocducdim

Description

Hi, I have a div that apply transform: scale(1.1819444444444445);, this div contain <model-viewer>, and when I use positionAndNormalFromPoint it return null, if I remove transform: scale(1.1819444444444445); it return correct position

Live Demo

https://glitch.com/edit/#!/model-viewer

Version

  • model-viewer: vX.X.X

Browser Affected

  • [ yes] Chrome, version: xx.x.xxxx.xx
  • Edge
  • Firefox
  • IE
  • Safari

OS

  • Android
  • iOS
  • Linux
  • MacOS
  • [yes ] Windows

AR

  • WebXR
  • SceneViewer
  • QuickLook

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