2
0
Эх сурвалжийг харах

WARNING: REVIEWED: A big bug with `GetMouseWheelMove()`

Ray 3 жил өмнө
parent
commit
7eb341ccaf
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      src/rcore.c

+ 2 - 2
src/rcore.c

@@ -3671,10 +3671,10 @@ float GetMouseWheelMove(void)
     return 0.0f;
 #endif
 #if defined(PLATFORM_WEB)
-    return CORE.Input.Mouse.previousWheelMove/100.0f;
+    return CORE.Input.Mouse.currentWheelMove/100.0f;
 #endif
 
-    return CORE.Input.Mouse.previousWheelMove;
+    return CORE.Input.Mouse.currentWheelMove;
 }
 
 // Set mouse cursor