Closing as not a bug: touch IDs are not guaranteed to start from 0. For example, on iOS the first touch has an ID well over a million (probably because it uses a system-wide counter for touch IDs). You need to receive a touch event and store its ID before you can use these expressions sensibly.