-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds the devicePixelRatio into consideration when calling getPixelColor as suggested by foxton9 (thanks a lot!), and also fixes the texture size. Without fixing the texture size, the first fix would work, but only on a fraction of the stage, with a devicePixelRatio different than 1 (for instance, with a devicePixelRatio of 2, only a fourth of the screen would be interactive...).
- Loading branch information
Showing
2 changed files
with
39 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters