开发者

Capture tap and hold on Mac trackpad with jQuery

I have a select list and when I tap and hol开发者_StackOverflow社区d on my Mac trackpad, then two finger scroll and let go on an option in the list, jQuery doesn't register this as a click. Does anyone know how I can capture this action? Thanks in advance.


Are you really interested in a click event or have you just been using the click event where you're really looking for the change event:

The change event is sent to an element when its value changes. This event is limited to <input> elements, <textarea> boxes and <select> elements.


2 possible reasons.

Reason 1: click hold and scroll is the same as click and drag

Reason 2: It's on click... not on release you have to be clicking down on the element first.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜