• 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
.github Loading commit data...
docs Loading commit data...
images Loading commit data...
scripts Loading commit data...
src Loading commit data...
.babelrc Loading commit data...
.eslintignore Loading commit data...
.eslintrc Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.npmrc Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CODE_OF_CONDUCT Loading commit data...
Jenkinsfile Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
gulpfile.js Loading commit data...
package-lock.json Loading commit data...
package.json Loading commit data...
requirements-dev.in Loading commit data...
yarn.lock Loading commit data...