jmbuhr / quarto-molstar

Shortcode to embed proteins and trajectories with Mol*
https://jmbuhr.de/quarto-molstar/
MIT License
42 stars 4 forks source link

viewer initially only shows black screen in revealjs #1

Closed jmbuhr closed 2 years ago

jmbuhr commented 2 years ago

Some viewers (not all) initially only show a black screen when embedded in a revealjs presentation. The app is correctly displayed after one of the following:

When I used to embed molstar manually I would use iframes of an external html file, in which case the issue didn't seem to occur. So what is happening here?

jmbuhr commented 2 years ago

additionally, the pointer position in the molstar viewer is offset from the mouse (down and right). This must be and interaction between molstar and revealjs's scaling function