What is a Touch equivalent to a Mouseout event?

When working with desktop browsers, you can use the mouse for JavaScript events.

When using a mobile browser, you only have touch events. I tried to find the equivalent for the mouseout event. It turns out that the touchhend event is not equivalent, because it fires only when the touch ends in the element where the touch handler is registered.

Is there a touch equivalent of mouseout event?

+4
source share
1 answer

See this article from MDN

In particular, touchendandtouchleave

, touchhend . , [ ], touchleave.

+5

All Articles