Skip to content

Fix Mouse inaccuracy when pixelRatio is not int#1055

Open
action-script wants to merge 1 commit into
liabru:masterfrom
action-script:FIX/mouse-pixelRation-inaccuracy
Open

Fix Mouse inaccuracy when pixelRatio is not int#1055
action-script wants to merge 1 commit into
liabru:masterfrom
action-script:FIX/mouse-pixelRation-inaccuracy

Conversation

@action-script

Copy link
Copy Markdown

When a pixel ratio is set by Renderer.setPixelRatio, the Mouse function automatically converts it to a integer. That creates a big inaccuracy when calculating the screen coordinates.

setPixelRatio('auto') can set a float value and those decimal will be ignored when calculating the mouse coordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant