Forgot to multiply xscale
This commit is contained in:
parent
82f9aecacb
commit
f5743f4610
1 changed files with 1 additions and 0 deletions
|
|
@ -905,6 +905,7 @@ - (void)scrollWheel:(NSEvent *)event
|
|||
if (flags) {
|
||||
float xscale = 1, yscale = 1;
|
||||
_glfwPlatformGetWindowContentScale(window, &xscale, &yscale);
|
||||
if (xscale > 0) deltaX *= xscale;
|
||||
if (yscale > 0) deltaY *= yscale;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue