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
Copy file name to clipboardExpand all lines: src/input/InputHandler.js
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -125,6 +125,7 @@ Phaser.InputHandler = function (sprite) {
125
125
/**
126
126
* Set to true to use pixel perfect hit detection when checking if the pointer is over this Sprite.
127
127
* The x/y coordinates of the pointer are tested against the image in combination with the InputHandler.pixelPerfectAlpha value.
128
+
* This feature only works for display objects with image based textures such as Sprites. It won't work on BitmapText or Rope.
128
129
* Warning: This is expensive, especially on mobile (where it's not even needed!) so only enable if required. Also see the less-expensive InputHandler.pixelPerfectClick.
129
130
* @property {boolean} pixelPerfectOver - Use a pixel perfect check when testing for pointer over.
130
131
* @default
@@ -134,6 +135,7 @@ Phaser.InputHandler = function (sprite) {
134
135
/**
135
136
* Set to true to use pixel perfect hit detection when checking if the pointer is over this Sprite when it's clicked or touched.
136
137
* The x/y coordinates of the pointer are tested against the image in combination with the InputHandler.pixelPerfectAlpha value.
138
+
* This feature only works for display objects with image based textures such as Sprites. It won't work on BitmapText or Rope.
137
139
* Warning: This is expensive so only enable if you really need it.
138
140
* @property {boolean} pixelPerfectClick - Use a pixel perfect check when testing for clicks or touches on the Sprite.
0 commit comments