Commit 97822425 authored by Robert Knight's avatar Robert Knight

Add a note about what the `scrolltorange` event might be used for

parent 50d3fe44
...@@ -300,6 +300,9 @@ export default class Guest { ...@@ -300,6 +300,9 @@ export default class Guest {
return; return;
} }
// Emit a custom event that the host page can respond to. This is useful,
// for example, if the highlighted content is contained in a collapsible
// section of the page that needs to be un-collapsed.
const event = new CustomEvent('scrolltorange', { const event = new CustomEvent('scrolltorange', {
bubbles: true, bubbles: true,
cancelable: true, cancelable: true,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment