• 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
..
integration Loading commit data...
adder-test.js Loading commit data...
annotation-counts-test.js Loading commit data...
annotation-sync-test.js Loading commit data...
empty.html Loading commit data...
features-test.js Loading commit data...
guest-test.coffee Loading commit data...
host-test.coffee Loading commit data...
range-util-test.js Loading commit data...
selections-test.js Loading commit data...
sidebar-test.coffee Loading commit data...
sidebar-trigger-test.js Loading commit data...