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
I think it may be prudent to use touch.hash() (importing NSObjectProtocol) instead of just converting to a pointer and comparing the address? I'm not entirely sure that the ID will be consistent otherwise, UITouch seems to be an immutable container that also contains e.g. the location of the current touch (so it'll probably change next time we process the specific touch).
Firefox' code seems to rely on inserting the UITouch into a hashmap, to store a stable identifier, so perhaps that's actually what we need to do?
I think it may be prudent to use
touch.hash()
(importingNSObjectProtocol
) instead of just converting to a pointer and comparing the address? I'm not entirely sure that the ID will be consistent otherwise,UITouch
seems to be an immutable container that also contains e.g. the location of the current touch (so it'll probably change next time we process the specific touch).Firefox' code seems to rely on inserting the
UITouch
into a hashmap, to store a stable identifier, so perhaps that's actually what we need to do?Found while reviewing #3947.
The text was updated successfully, but these errors were encountered: