When i used this library the ScaleFactorCallback was not only called on every screen update, but also on every pointer update.
I don't know if this is the intended behaviour but on web this triggers the function over 300 times on a mouse movement.
This fix only calls ScaleFactorCallback when the screen changes.
When i used this library the ScaleFactorCallback was not only called on every screen update, but also on every pointer update. I don't know if this is the intended behaviour but on web this triggers the function over 300 times on a mouse movement.
This fix only calls ScaleFactorCallback when the screen changes.