# Check how much the screen position has changed

**URL:** <https://discuss.appium.io/t/check-how-much-the-screen-position-has-changed/9977>\
**Category:** Support\
**Created:** [May 4, 2016, 8:12am UTC](https://discuss.appium.io/t/check-how-much-the-screen-position-has-changed/9977 "2016-05-04T08:12:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomekL](https://discuss.appium.io/letter_avatar_proxy/v4/letter/t/ee59a6/32.png) [@TomekL](https://discuss.appium.io/u/TomekL)\
**Post date:** [May 4, 2016, 8:12am UTC](https://discuss.appium.io/t/check-how-much-the-screen-position-has-changed/9977/1 "2016-05-04T08:12:04Z")

</div>

I am running the Android test with appium, and during the execution of test I perform swipe on a screen, how can I find out how many pixels I moved in relation to original position?

---

<div class="post-metadata">

**Author:** ![afwang](https://discuss.appium.io/user_avatar/discuss.appium.io/afwang/32/2419_2.png) [@afwang](https://discuss.appium.io/u/afwang)\
**Post date:** [May 4, 2016, 6:04pm UTC](https://discuss.appium.io/t/check-how-much-the-screen-position-has-changed/9977/2 "2016-05-04T18:04:42Z")

</div>

Why not take the ending position of your swipe and subtract it from your starting position?
