thescientist13 / greenwood-starter-presentation

A Greenwood plugin and general purpose starter kit for creating slide decks and presentations from markdown.
https://awesome-bhaskara-b7d76c.netlify.app
3 stars 0 forks source link

add a workaround for focus trap when an iframe gains focus #40

Closed thescientist13 closed 3 years ago

thescientist13 commented 3 years ago

Related Issue

resolves #9

Summary of Changes

The issue was related to the fact that since an <iframe> is a window, when you click on it, it takes focus and this the parent window does not capture events anymore.

  1. Created a script to post events from the slide <iframe> to the parent to provide consistent navigation
netlify[bot] commented 3 years ago

✔️ Deploy Preview for awesome-bhaskara-b7d76c ready!

🔨 Explore the source changes: d808b163f93b1fb2b818a2ca7b9bf1391444b581

🔍 Inspect the deploy log: https://app.netlify.com/sites/awesome-bhaskara-b7d76c/deploys/61283ea7a463b00008f078b1

😎 Browse the preview: https://deploy-preview-40--awesome-bhaskara-b7d76c.netlify.app