简体   繁体   中英

How does Angular listen for mousedown events?

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?

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM