Reliably detect if a user is using a mouse on a webpage?
问题 On our page we have some iframes in a long horizontally-scrolling <div> . If the user is using a mouse they can scroll with the scrollbars and we would like them to be able to select text within the iframes. If they are using touch only however, the scrollbars are a hassle and I would like to overlay a transparent element over the whole thing to give them the ability to scroll easily by dragging, this of course sacrifices the select-text feature but makes sense in that scenario. Which gets me