Answer the question
In order to leave comments, you need to log in
What event is responsible for pointing to the block but with the LMB pressed in advance?
in vue it works with the slightest movement of the mouse without holding the left click,
but in js everything works as it should https://codepen.io/DimaDolgoter/pen/WNrxaKG?editor...
although the event is the same
Since in vue to track the mouseover event with holding the LMB button? @mousemove="md.status = !md.status"
Answer the question
In order to leave comments, you need to log in
There are no such events.
1. An event listener is hung on the document mousedown
, set the flag = true in it .
2. A listener is hung on the document (or on a common element that wraps all the elements of interest) mousemove
, it checks whether the flag from clause 1 is set in it. If the flag === true , we do what interests us.
3. An event listener is hung on the document mouseup
, the flag is set to false in it .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question