canvas: ios: disable touch data polling unless data is used in onTouch
This commit is contained in:
parent
582c29027a
commit
d962c1efe0
3 changed files with 15 additions and 8 deletions
|
|
@ -41,7 +41,7 @@ module.exports = {
|
|||
touchType: e.touchType
|
||||
}
|
||||
|
||||
if (iOS) {
|
||||
if (iOS && IOS_TOUCH_POLLING) {
|
||||
// iOS-specific event properties
|
||||
ev.touchType = e.touchType
|
||||
// iOS-pollable event properties
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue