How to tell if mouse moved during .click()?

前端 未结 4 1145
半阙折子戏
半阙折子戏 2021-01-23 22:53

According to the jQuery documentation for .click(), the event is triggered only after this series of events:

  • The mouse button is depressed while the pointer is ins
4条回答
  •  臣服心动
    2021-01-23 23:44

    Do you consider a mousedown and a mouseup event trigger to be a viable alternative? If the coordinates of the mousedown are the same as the coordinates for the mouseup, the cursor has not changed position during the click.

提交回复
热议问题