# Scroll to a saved position

**URL:** <https://forum.bubble.io/t/scroll-to-a-saved-position/46676>\
**Category:** Idea\
**Created:** [January 13, 2019, 8:48am UTC](https://forum.bubble.io/t/scroll-to-a-saved-position/46676 "2019-01-13T08:48:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hikaru](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hikaru/32/36561_2.png) [@hikaru](https://forum.bubble.io/u/hikaru)\
**Post date:** [January 13, 2019, 8:48am UTC](https://forum.bubble.io/t/scroll-to-a-saved-position/46676/1 "2019-01-13T08:48:06Z")

</div>

[https://puu.sh/CvXqf.png](https://puu.sh/CvXqf.png)  
[https://puu.sh/CvXr2.png](https://puu.sh/CvXr2.png)

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [January 14, 2019, 7:51pm UTC](https://forum.bubble.io/t/scroll-to-a-saved-position/46676/2 "2019-01-14T19:51:56Z")

</div>

I think this will solve your problem:

> [@How to scroll a new element, without scrolling the rest? (Like all mobile apps)](http://forum.bubble.io/t/how-to-scroll-a-new-element-without-scrolling-the-rest-like-all-mobile-apps/20644/3):
>
> Great question! I believe this is easier for repeating groups, but when you don’t have a repeating group, it can be a bit tricky. There may be a better way, but one possible workaround is to use a combination of parameters, and the Toolbox plugin in order to run custom JavaScript. Here is an example: Preview: Editor: Here there is a Settings Group, located on the page and a Notifications Group, located in its own Floating Group. When one of the blue groups on the Settings Group is clicked…

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [January 14, 2019, 11:25pm UTC](https://forum.bubble.io/t/scroll-to-a-saved-position/46676/4 "2019-01-14T23:25:40Z")

</div>

How about looking at this example that I can show so you can see how I put it together. Seems to work for me.

Editor: [https://bubble.io/page?name=index&id=805scrollto&tab=tabs-1](https://bubble.io/page?name=index&id=805scrollto&tab=tabs-1)

Preview: [https://805scrollto.bubbleapps.io/version-test?debug\_mode=true](https://805scrollto.bubbleapps.io/version-test?debug_mode=true)

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [January 15, 2019, 1:33am UTC](https://forum.bubble.io/t/scroll-to-a-saved-position/46676/6 "2019-01-15T01:33:34Z")

</div>

That’s a good question. Not sure. 😊

---

<div class="post-metadata">

**Author:** ![J805](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/j805/32/41267_2.png) [@J805](https://forum.bubble.io/u/J805)\
**Post date:** [January 15, 2019, 1:35am UTC](https://forum.bubble.io/t/scroll-to-a-saved-position/46676/7 "2019-01-15T01:35:31Z")

</div>

Maybe try something like this?

```
window.scrollTo({
top: 100,
left: 100,
behavior: 'smooth'
});

```

That may not work for all browsers. Here is another way to do it for all browsers: [https://www.w3schools.com/howto/howto\_css\_smooth\_scroll.asp#section1](https://www.w3schools.com/howto/howto_css_smooth_scroll.asp#section1)
