# Gui.pick\_node() is not working as expected with offset coordinates on Android and iPhone(SOLVED)

**URL:** <https://forum.defold.com/t/gui-pick-node-is-not-working-as-expected-with-offset-coordinates-on-android-and-iphone-solved/83062>\
**Category:** Bugs\
**Created:** [July 27, 2026, 1:15pm UTC](https://forum.defold.com/t/gui-pick-node-is-not-working-as-expected-with-offset-coordinates-on-android-and-iphone-solved/83062 "2026-07-27T13:15:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtvitzh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/vtvitzh/32/41175_2.png) [@vtvitzh](https://forum.defold.com/u/vtvitzh)\
**Post date:** [July 27, 2026, 1:15pm UTC](https://forum.defold.com/t/gui-pick-node-is-not-working-as-expected-with-offset-coordinates-on-android-and-iphone-solved/83062/1 "2026-07-27T13:15:59Z")

</div>

gui.pick\_node() is not working as expected with offset coordinates on Android and iPhone.  
I have created a reproduction project here:

> **[report/20260727/Mobile Game at main · vtvitzh/report](https://github.com/vtvitzh/report/tree/main/20260727/Mobile%20Game)**
>
> main/20260727/Mobile%20Game

A pie node is displayed slightly above the touch point, and its color changes when the pie’s position overlaps with a box node.  
When testing on mobile, the Y-coordinate detection is off.  
No issues occur during testing on Windows or macOS.

---

<div class="post-metadata">

**Author:** ![Pawel](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pawel/32/24623_2.png) [@Pawel](https://forum.defold.com/u/Pawel)\
**Post date:** [September 30, 2026, 1:12pm UTC](https://forum.defold.com/t/gui-pick-node-is-not-working-as-expected-with-offset-coordinates-on-android-and-iphone-solved/83062/2 "2026-09-30T13:12:12Z")

</div>

Thanks for repro project! I created an issue to track this:

> <https://github.com/defold/defold/issues/13344>
>
> \*\*Describe the bug (REQUIRED)\*\*
> \`gui.pick\_node()\` appears to use incorrect Y coo…rdinates on Android and iOS when GUI nodes are positioned with an offset relative to the touch position.
> 
> In the reproduction project, a pie node is displayed slightly above the current touch position. Its color changes when \`gui.pick\_node()\` detects that the pie node overlaps a box node.
> 
> On desktop platforms the visual position and the position used by gui.pick\_node() match correctly.
> 
> On Android and iOS, however, the Y coordinate used for hit detection appears to be offset, causing gui.pick\_node() to report an overlap at a different position than the one displayed on screen.
> 
> \*\*To Reproduce (REQUIRED)\*\*
> Steps to reproduce the behavior:
> 1. Open the reproduction project:
> vtvitzh/report → 20260727/Mobile Game
> 2. Build and run the project on an Android or iOS device.
> 3. Touch and move your finger on the screen.
> 4. A pie node is displayed slightly above the touch position.
> 5. Move the pie node toward the box node and observe when its color changes.
> 
> \*\*Expected behavior (REQUIRED)\*\*
> gui.pick\_node() should test the actual displayed position of the GUI node.
> 
> \*\*Defold version (REQUIRED):\*\*
> - Version \[e.g. 1.2.155\]
> 
> \*\*Platforms (REQUIRED):\*\*
> - Android
> - iOS
> 
> The issue seems to be specific to mobile platforms, since the same project behaves correctly on PC.
> 
> \*\*Minimal repro case project (OPTIONAL):\*\*
> \[Please attach a minimal project where the bug is reproduced. This will greatly help the person trying to investigate and fix the bug.\](https://github.com/vtvitzh/report/tree/main/20260727/Mobile%20Game)
> 
> Forum discussion:
> https://forum.defold.com/t/gui-pick-node-is-not-working-as-expected-with-offset-coordinates-on-android-and-iphone/83062
> 
> \*\*Workaround (OPTIONAL):\*\*
> If there is a workaround, please describe it here.
> 
> \*\*Screenshots (OPTIONAL):\*\*
> If applicable, add screenshots to help explain your problem.
> 
> \*\*Additional context (OPTIONAL):\*\*
> Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [October 1, 2026, 2:24pm UTC](https://forum.defold.com/t/gui-pick-node-is-not-working-as-expected-with-offset-coordinates-on-android-and-iphone-solved/83062/3 "2026-10-01T14:24:17Z")

</div>

@vtvitzh we have replied to the issue on GitHub with our findings. You were not providing correct coordinates.

---

<div class="post-metadata">

**Author:** ![vtvitzh](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/vtvitzh/32/41175_2.png) [@vtvitzh](https://forum.defold.com/u/vtvitzh)\
**Post date:** [October 1, 2026, 4:16pm UTC](https://forum.defold.com/t/gui-pick-node-is-not-working-as-expected-with-offset-coordinates-on-android-and-iphone-solved/83062/4 "2026-10-01T16:16:20Z")

</div>

Thank you for your assistance!  
I have confirmed that the proposed fix resolves the issue.
