开发者

Capture tap and hold on Mac trackpad with jQuery

开发者 https://www.devze.com 2023-03-16 03:35 出处:网络
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 anyo

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

精彩评论

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