• Juan Corona's avatar
    Emit an event on the Guest element, ‘scrollToRange’ · 139e16fe
    Juan Corona authored
    This allows attached handlers to hook into the behaviour of bringing a highlight anchor into view.
    The event.detail property contains a native DOM range representing the anchor.
    The default scroll behaviour can be prevented with the event.preventDefault method.
    The event bubbles upward, meaning a handler could be attached at the guest root element  - right now the document’s body element - and any ancestor.
    body -> documentElement -> document -> window
    139e16fe
Name
Last commit
Last update
..
anchoring Loading commit data...
config Loading commit data...
highlighter Loading commit data...
plugin Loading commit data...
test Loading commit data...
util Loading commit data...
vendor Loading commit data...
.eslintrc.js Loading commit data...
adder.html Loading commit data...
adder.js Loading commit data...
annotation-counts.js Loading commit data...
annotation-sync.js Loading commit data...
delegator.coffee Loading commit data...
features.js Loading commit data...
frame-observer.js Loading commit data...
guest.coffee Loading commit data...
host.coffee Loading commit data...
main.js Loading commit data...
pdf-sidebar.coffee Loading commit data...
pdfjs-rendering-states.js Loading commit data...
plugin.coffee Loading commit data...
range-util.js Loading commit data...
selections.js Loading commit data...
sidebar-trigger.js Loading commit data...
sidebar.coffee Loading commit data...