Add back mousePos scale factor divider

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-18 14:20:30 +01:00
parent 15b137e373
commit 7ea10c0b92
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0

View file

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