# Bug Report: Does not scroll back up if front of next card is taller than a single screen

**URL:** <https://forums.ankiweb.net/t/bug-report-does-not-scroll-back-up-if-front-of-next-card-is-taller-than-a-single-screen/53846>\
**Category:** Suggestions\
**Created:** [January 2, 2025, 10:49am UTC](https://forums.ankiweb.net/t/bug-report-does-not-scroll-back-up-if-front-of-next-card-is-taller-than-a-single-screen/53846 "2025-01-02T10:49:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![menfried](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/menfried/32/26091_2.png) [@menfried](https://forums.ankiweb.net/u/menfried)\
**Post date:** [January 2, 2025, 10:49am UTC](https://forums.ankiweb.net/t/bug-report-does-not-scroll-back-up-if-front-of-next-card-is-taller-than-a-single-screen/53846/1 "2025-01-02T10:49:26Z")

</div>

Anki for iOS 24.11 does not scroll back up to the top for the next card if it previously scrolled down to show the back side of the previous card.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [January 2, 2025, 11:32pm UTC](https://forums.ankiweb.net/t/bug-report-does-not-scroll-back-up-if-front-of-next-card-is-taller-than-a-single-screen/53846/2 "2025-01-02T23:32:10Z")

</div>

The first thing to check is if the card/note type is using Anki’s answer-scrolling functionality ([based on](https://docs.ankiweb.net/templates/styling.html#fading-and-scrolling) `<hr id=answer>`), or something else custom.

Can you post the card templates – front, back, and styling, in preformatted text/code blocks, so we can see everything – of a card you’re having this issue with?

---

<div class="post-metadata">

**Author:** ![menfried](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/menfried/32/26091_2.png) [@menfried](https://forums.ankiweb.net/u/menfried)\
**Post date:** [January 5, 2025, 11:42am UTC](https://forums.ankiweb.net/t/bug-report-does-not-scroll-back-up-if-front-of-next-card-is-taller-than-a-single-screen/53846/3 "2025-01-05T11:42:03Z")

</div>

I have posted the card templates below. Additionally, you can find a video and two cards that trigger the bug at the very end.

**First card:**

Front:

```auto
{{Front}}

```

Back:

```auto
{{FrontSide}}

<hr id=answer>

{{Back}}

```

Styling:

```auto
.card {
 font-family: arial;
 font-size: 20px;
 text-align: center;
 color: black;
 background-color: white;
}

```

**Second Card**

Front Template (From the image occlusion plugin):

```auto
{{#Header}}<div>{{Header}}</div>{{/Header}}
<div style="display: none">{{cloze:Occlusion}}</div>
<div id="err"></div>
<div id="image-occlusion-container">
    {{Image}}
    <canvas id="image-occlusion-canvas"></canvas>
</div>
<script>
try {
    anki.imageOcclusion.setup();
} catch (exc) {
    document.getElementById("err").innerHTML = `Error loading image occlusion. Is your Anki version up to date?<br><br>${exc}`;
}
</script>

```

Back:

```auto
{{#Header}}<div>{{Header}}</div>{{/Header}}
<div style="display: none">{{cloze:Occlusion}}</div>
<div id="err"></div>
<div id="image-occlusion-container">
    {{Image}}
    <canvas id="image-occlusion-canvas"></canvas>
</div>
<script>
try {
    anki.imageOcclusion.setup();
} catch (exc) {
    document.getElementById("err").innerHTML = `Error loading image occlusion. Is your Anki version up to date?<br><br>${exc}`;
}
</script>

<div><button id="toggle">Toggle Masks</button></div>
{{#Back Extra}}<div>{{Back Extra}}</div>{{/Back Extra}}

```

Styling:

```auto
#image-occlusion-canvas {
    --inactive-shape-color: #ffeba2;
    --active-shape-color: #ff8e8e;
    --inactive-shape-border: 1px #212121;
    --active-shape-border: 1px #212121;
}

.card {
    font-family: arial;
    font-size: 20px;
    text-align: center;
    color: black;
    background-color: white;
}

```

Video: [bug-video.mp4 - Google Drive](https://drive.google.com/file/d/15Ykx0lwFed5rBioi3MgKV34upip1whXI/view?usp=sharing)  
The bug is visible on the second cards, I have had to manually scroll up to see the top of the image.

Cards: [Bug Demo.apkg - Google Drive](https://drive.google.com/file/d/1pVFqoTESWmXl9TnyYQOjRj5rC3eHUF1X/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![dae](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/dae/32/65_2.png) [@dae](https://forums.ankiweb.net/u/dae)\
**Post date:** [January 7, 2025, 10:35am UTC](https://forums.ankiweb.net/t/bug-report-does-not-scroll-back-up-if-front-of-next-card-is-taller-than-a-single-screen/53846/4 "2025-01-07T10:35:14Z")

</div>

Thanks for the report and reproduction steps, I will look into this.
