canvas: ios: disable touch data polling unless data is used in onTouch

This commit is contained in:
jean-emmanuel 2022-10-18 09:03:17 +02:00
parent 582c29027a
commit d962c1efe0
3 changed files with 15 additions and 8 deletions

View file

@ -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