Add back mousePos scale factor divider
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
15b137e373
commit
7ea10c0b92
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ protected:
|
|||
{
|
||||
const ScopedContext sc(this);
|
||||
|
||||
rack::math::Vec mousePos = rack::math::Vec(ev.pos.getX(), ev.pos.getY()).div(1).round();
|
||||
rack::math::Vec mousePos = rack::math::Vec(ev.pos.getX(), ev.pos.getY()).div(getScaleFactor()).round();
|
||||
// .div(ctx->window->pixelRatio / ctx->window->windowRatio).round();
|
||||
rack::math::Vec mouseDelta = mousePos.minus(fLastMousePos);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue