Module: touch-vs-mouse

Detection of touch usage, because some devices are capable of touches even they are equipped with mouse,so user can change usage of both inputs unexpectedly in time.

Source:

CSS classes


user-is-using-touch
user-is-using-mouse

Methods


JS.Responsive.isUsingTouches()

Returns information if is actually using touches.

Since:
  • 3.0.0

Source:
Returns:

Returns true if using touches, false if using mouse, undefined if no use detected yet

Type:
Boolean|undefined

Events


changedUsingTouch
{Boolean} isUsingTouch