TouchesBegan and TouchesEnded with Multitouch issue

I am using TouchesBegan TouchesMoved with Multitouch.

I have a manual implementation of what is essentially a button.

I am restricting the test to a TouchesBegan point to set the button as down, and the same for TouchesEnded to reset it.

The problem is that the user moves the finger from the borders of the button until it rises, then TouchesEnded is outside the border of the button where it started to touch.

I can’t just reset everything that concerns you, since the user can still hold the other button with the other finger.

What is the recommended solution? UIButton must somehow do something.

+3
source share
1

Moved: "" , " " , . . , ( " ?" )

+3

Source: https://habr.com/ru/post/1734341/


All Articles