浏览代码

Mouse offset and scaling must be considered also on web!

Ray 2 年之前
父节点
当前提交
d7debba222
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rcore.c

+ 1 - 1
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;