Mouse offset and scaling must be considered also on web!

This commit is contained in:
Ray 2023-09-06 23:16:31 +02:00
parent d55527953a
commit d7debba222
1 changed files with 1 additions and 1 deletions

View File

@ -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;