You can't count on touch IDs being any particular numbers, only that each touch has a unique ID. So you shouldn't rely on things like comparing a touch ID >= 0 - you're relying on touch IDs being positive when Safari sometimes uses negative touch IDs.
Construct's own examples work around this by using -1 as a special ID for "no touch", and compares touch ID != -1.