Fórum Fórum

Vissza

Phone view doesn't scroll to top on page change

Váltás
Hi,

I have built some phone views for a course. The page content is taller than a single phone screen, so the user needs to scroll down to see all the content. I have placed the button to navigate to the next page at the bottom of each page. This means the user does not need to scroll back up to navigate to the next page.

I am finding that when navigating from one page to the next, the browser window position is remaining at the same scroll position as the previous page - i.e. the window position is not moving to the top of the page, and instead a page might load in with the window scrolled half way down the content.

Is this expected behaviour? I personally believe the window should auto-scroll to the top on page change. Is there some way to achive this?

Many thanks in advance for any help given.
0 (0 Szavazatok)

RE: Phone view doesn't scroll to top on page change
Válasz
2024.01.24. 18:10 válaszként erre: Leon R.
Hi Leon,
Yes, this is expected behavior. There may be times where a page change is invisble to the learner (such as some software simulations or quizzes). We'll see about adding a lesson setting so that this can be configureable. 

In the meantime, there's a workaround that you can use. 
  1. On the Master Page add a text object to the top left corner,
  2. make the text white, or the same color as your background to "hide" it (keep Start Visible = true),
  3. turn off the Show Focus Ring property on the text object.
  4. Create an action that says onPageChange > Focus on (text object). The "Focus on" block is under the "Page" category.
See attached image. That should force the page to scroll back to the top any time the page is changed.

Let us know if that doesn't work for you!
0 (0 Szavazatok)

RE: Phone view doesn't scroll to top on page change
Válasz
2024.01.26. 16:35 válaszként erre: Navdeep Dhillon.
Thank you, that works for us.
0 (0 Szavazatok)

RE: Phone view doesn't scroll to top on page change
Válasz
2024.04.08. 13:30 válaszként erre: Navdeep Dhillon.
I can see this change has been implemented in version 5.1.0.

Many thanks for doing that.
0 (0 Szavazatok)