# ScrollViewSwipe Sample initial Position

**URL:** <https://forums.fusetools.com/t/scrollviewswipe-sample-initial-position/4136>\
**Category:** How-to Discussions\
**Created:** [March 6, 2018, 12:38pm UTC](https://forums.fusetools.com/t/scrollviewswipe-sample-initial-position/4136 "2018-03-06T12:38:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomStar](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@TomStar](https://forums.fusetools.com/u/TomStar)\
**Post date:** [March 6, 2018, 12:38pm UTC](https://forums.fusetools.com/t/scrollviewswipe-sample-initial-position/4136/1 "2018-03-06T12:38:28Z")

</div>

Hey there,

i have implemented the ScrollViewSwipe sample ( [https://github.com/fusetools/fuse-samples/blob/master/Samples/Controls/ScrollViewSwipe/MainView.ux](https://github.com/fusetools/fuse-samples/blob/master/Samples/Controls/ScrollViewSwipe/MainView.ux) ) and i am looking for a way to show the headerPanel when the view is loaded. Right now the headerPanel gets visible after first Swipe/Scroll but i need it initial visible.

the expression Y=“max({ReadProperty swipeAnim.Progress}, {ReadProperty scrollAnim.Progress})-1” resturns -1 at the beginning becuase swipeAnim.Progress and swipeAnim.Progress are 0 when loaded which is correct and -1 returns then -1, but i need a 0 at the beginning.

any ideas?

Thank’s  
Tom

---

<div class="post-metadata">

**Author:** ![TomStar](https://avatars.discourse-cdn.com/v4/letter/t/c6cbf5/32.png) [@TomStar](https://forums.fusetools.com/u/TomStar)\
**Post date:** [March 6, 2018, 8:35pm UTC](https://forums.fusetools.com/t/scrollviewswipe-sample-initial-position/4136/2 "2018-03-06T20:35:50Z")

</div>

Just in case someone is looking for the same, i figured out a solution:

```auto
 <Translation Y="{max(max({ReadProperty swipeAnim.Progress}, {ReadProperty scrollAnim.Progress}), {ReadProperty scrollView.ScrollPosition} == 0 ? 1 : 0) -1}" RelativeTo="Size" ux:Name="topY"/>

```

Not sure if there is a better way to do that 🙂

Best Tom
