Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 470 Bytes

File metadata and controls

18 lines (14 loc) · 470 Bytes

Elie's Angular Long Press Directive

  • ℹ️ Long Press/Continuous Press Directive for Angular.
  • #️⃣ Created for Angular 15 and above.

How to use

  • elieLongPressEvent emits <TouchEvent | MouseEvent>.
  • elieLongPressContinuousEvent does not pass any params.
<div
  elieLongPress
  [elieLongPressContinuousFiring]="false"
  (elieLongPressContinuousEvent)="elieLongPressConstantEvent()"
  (elieLongPressEvent)="elieLongPressEvent($event)">
</div>