MCPcopy Index your code
hub / github.com/SpringRoll/SpringRoll / scrollIntoView

Function scrollIntoView

docs/assets/site.js:81–89  ·  view source on GitHub ↗
(targetId)

Source from the content-addressed store, hash-verified

79}
80
81function scrollIntoView(targetId) {
82 // Only scroll to element if we don't have a stored scroll position.
83 if (targetId && !history.state) {
84 var hashTarget = document.getElementById(targetId);
85 if (hashTarget) {
86 hashTarget.scrollIntoView();
87 }
88 }
89}
90
91function gotoCurrentTarget() {
92 showHashTarget(location.hash.substring(1));

Callers 1

gotoCurrentTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected