You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PixelsToNative should convert the accepted pixels number into projected/native units. Instead, it doesn't use the variable at all and merely returns the ratio of native to projected.
Solution
Refactor PixelsToNative to either:
Convert pixels, or
Not accept pixels (in which case, the function should be renamed to something like PixelsToNativeRatio).
The text was updated successfully, but these errors were encountered:
Problem
PixelsToNative
should convert the acceptedpixels
number into projected/native units. Instead, it doesn't use the variable at all and merely returns the ratio of native to projected.Solution
Refactor
PixelsToNative
to either:pixels
, orpixels
(in which case, the function should be renamed to something likePixelsToNativeRatio
).The text was updated successfully, but these errors were encountered: