diff options
| author | Ray <[email protected]> | 2023-09-06 23:16:31 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2023-09-06 23:16:31 +0200 |
| commit | d7debba2224b638a3429fcceffeade28dfa7a4cd (patch) | |
| tree | 72e3f7e2466ea5fa256676fd8a112c2c574e7617 | |
| parent | d55527953a9cce50c844caa266fe30fbf9b88d44 (diff) | |
| download | raylib-d7debba2224b638a3429fcceffeade28dfa7a4cd.tar.gz raylib-d7debba2224b638a3429fcceffeade28dfa7a4cd.zip | |
Mouse offset and scaling must be considered also on web!
| -rw-r--r-- | src/rcore.c | 2 |
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; |
