# Page Switch Problem

**URL:** <https://forum.electra.one/t/page-switch-problem/3938>\
**Category:** Bug reports\
**Created:** [September 24, 2025, 6:49pm UTC](https://forum.electra.one/t/page-switch-problem/3938 "2025-09-24T18:49:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![michaelhaefliger](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@michaelhaefliger](https://forum.electra.one/u/michaelhaefliger)\
**Post date:** [September 24, 2025, 6:49pm UTC](https://forum.electra.one/t/page-switch-problem/3938/1 "2025-09-24T18:49:20Z")

</div>

I’m running into a problem and can’t figure out the error.  
In the preset below, the Algorithm fader (top left) controls the pages via Lua.  
When I scroll through the algorithms, everything freezes during the page change, and I have to restart the E1.

> **[Electra One App](https://app.electra.one/preset/FyIombwiZbnn2QZ2mHjD)**

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [September 24, 2025, 9:34pm UTC](https://forum.electra.one/t/page-switch-problem/3938/2 "2025-09-24T21:34:12Z")

</div>

I will try to replicate it. By “scrolling” you mean changing the pages by using the knob or swiping the list in that bigger detail window with the list values?

EDIT: I was able to replicate the issue.

---

<div class="post-metadata">

**Author:** ![michaelhaefliger](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@michaelhaefliger](https://forum.electra.one/u/michaelhaefliger)\
**Post date:** [September 25, 2025, 6:46pm UTC](https://forum.electra.one/t/page-switch-problem/3938/3 "2025-09-25T18:46:14Z")

</div>

> [@michaelhaefliger](#):
>
> I’m running into a problem and can’t figure out the error.  
> In the preset below, the Algorithm fader (top left) controls the pages via Lua.  
> When I scroll through the algorithms, everything freezes during the page change, and I have to restart the E1.

As a quick workaround I added a timer with a counter.  
The fader sets only a _target value_, and the timer applies it with a short delay.  
This prevents the controller from freezing during fast page changes.

---

<div class="post-metadata">

**Author:** ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)\
**Post date:** [September 25, 2025, 6:50pm UTC](https://forum.electra.one/t/page-switch-problem/3938/4 "2025-09-25T18:50:19Z")

</div>

The issue is caused by the fact that you fire the page change 6 times in the same time. Each list control on all pages will execute the Lua function because they share the same virtual parameter. I am trying to find out why - it should be safe to execute the functions in parallel.

I like the simplicity of your original solution but it has this drawback…

---

<div class="post-metadata">

**Author:** ![michaelhaefliger](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@michaelhaefliger](https://forum.electra.one/u/michaelhaefliger)\
**Post date:** [September 25, 2025, 7:27pm UTC](https://forum.electra.one/t/page-switch-problem/3938/5 "2025-09-25T19:27:29Z")

</div>

Thanks for clarifying. I didn’t realize that this was firing the Lua function in parallel. In the original preset, this fader also triggers a lot of other functions.

I also tried your example with the use of hidden pages as pools of controls to avoid this, but I still ran into the same issue. I’ll make a reduced test version and post it later.

---

<div class="post-metadata">

**Author:** ![michaelhaefliger](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@michaelhaefliger](https://forum.electra.one/u/michaelhaefliger)\
**Post date:** [September 25, 2025, 8:03pm UTC](https://forum.electra.one/t/page-switch-problem/3938/6 "2025-09-25T20:03:19Z")

</div>

I also tested this preset and observed the same issue. Maybe as a workaround I could add a buffer that checks whether 0–5 is already loaded instead of using a timer.

> **[Electra One App](https://app.electra.one/preset/XUHfxWE4ofQkiba6MhJc)**
