Top "Touch" questions

Touch-based interfaces have unique considerations that do not apply to other modes of input, and vice versa.

What's the best way to detect a 'touch screen' device using JavaScript?

I've written a jQuery plug-in that's for use on both desktop and mobile devices. I wondered if there is a …

javascript jquery touch
How to add a touch event to a UIView?

How do I add a touch event to a UIView? I try: UIView *headerView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.bounds.…

ios objective-c events uiview touch
How do I simulate a hover with a touch in touch enabled browsers?

With some HTML like this: <p>Some Text</p> Then some CSS like this: p { color:…

javascript html css hover touch
Consider marking event handler as 'passive' to make the page more responsive

I am using hammer for dragging and it is getting choppy when loading other stuff, as this warning message is …

javascript jquery angularjs touch hammer.js
android: move a view on touch move (ACTION_MOVE)

I'd like to do a simple control: a container with a view inside. If I touch the container and I …

android touch
Prevent Android activity dialog from closing on outside touch

I have an activity that is using the Theme.Dialog style such that it is a floating window over another …

java android android-activity dialog touch
How to remove/ignore :hover css style on touch devices

I want to ignore all :hover CSS declarations if a user visits our website via touch device. Because the :hover …

html css hover touch
Binding multiple events to a listener (without JQuery)?

While working with browser events, I've started incorporating Safari's touchEvents for mobile devices. I find that addEventListeners are stacking up …

javascript jquery touch addeventlistener
Javascript Drag and drop for touch devices

I am looking for a drag & DROP plugin that works on touch devices. I would like similar functionality to …

javascript jquery jquery-ui touch
Disable double-tap "zoom" option in browser on touch devices

I want to disable the double-tap zoom functionality on specified elements in the browser (on touch devices), without disabling all …

html browser touch zoom