summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2023-09-06 23:16:31 +0200
committerRay <[email protected]>2023-09-06 23:16:31 +0200
commitd7debba2224b638a3429fcceffeade28dfa7a4cd (patch)
tree72e3f7e2466ea5fa256676fd8a112c2c574e7617
parentd55527953a9cce50c844caa266fe30fbf9b88d44 (diff)
downloadraylib-d7debba2224b638a3429fcceffeade28dfa7a4cd.tar.gz
raylib-d7debba2224b638a3429fcceffeade28dfa7a4cd.zip
Mouse offset and scaling must be considered also on web!
-rw-r--r--src/rcore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c
index 67907c36..138d3e4a 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -4051,7 +4051,7 @@ Vector2 GetMousePosition(void)
{
Vector2 position = { 0 };
-#if defined(PLATFORM_ANDROID) || defined(PLATFORM_WEB)
+#if defined(PLATFORM_ANDROID) //|| defined(PLATFORM_WEB)
position = GetTouchPosition(0);
#else
position.x = (CORE.Input.Mouse.currentPosition.x + CORE.Input.Mouse.offset.x)*CORE.Input.Mouse.scale.x;