02-21-2018 21:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
02-21-2018 21:01
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Is it possible to reset the scroll position in a scroll view via JavaScript? I'd like to show and hide a scroll view and have it reset to the top every time it's shown.
Answered! Go to the Best Answer.

Accepted Solutions
02-22-2018 07:11 - edited 02-22-2018 07:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
02-22-2018 07:11 - edited 02-22-2018 07:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I figured this out:
Interface
<svg> <use id="sv" href="#scrollview"> <use href="#scrollview-item"> <image href="01.png" load="sync" /> </use> <use href="#scrollview-item"> <image href="02.png" load="sync" /> </use> <use href="#scrollview-item"> <image href="03.png" load="sync" /> </use> </use> </svg>
JavaScript
document.getElementById("sv").value = 0;
02-22-2018 07:11 - edited 02-22-2018 07:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

SunsetRunner
02-22-2018 07:11 - edited 02-22-2018 07:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
I figured this out:
Interface
<svg> <use id="sv" href="#scrollview"> <use href="#scrollview-item"> <image href="01.png" load="sync" /> </use> <use href="#scrollview-item"> <image href="02.png" load="sync" /> </use> <use href="#scrollview-item"> <image href="03.png" load="sync" /> </use> </use> </svg>
JavaScript
document.getElementById("sv").value = 0;
07-29-2019 08:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-29-2019 08:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thanks davey this was driving me mad.

