In the ngDraggable
project , there is a line of code in the ngDrag
directive
element.on(_pressEvents, onpress);
where
var _pressEvents = 'touchstart mousedown';
But I looked all throughout the code, and I don't see any $emit
or $broadcast
of either _pressEvents
, touchstart
or mousedown
.
What's publishing these events? Is it something built into Angular?
These are native events, they are triggered by the browser.
Sources :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.