daybrush / moveable

Moveable! Draggable! Resizable! Scalable! Rotatable! Warpable! Pinchable! Groupable! Snappable!

Home Page:https://daybrush.com/moveable/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ngDragStart not working

shelbyisnothere opened this issue · comments

Environments

  • Framework name: Angular
  • Framework version: 16
  • Moveable Component version: ngx-moveable@0.50.0
  • Testable Address(optional):

Description

I am trying to use the dragStart method specified in the documentation. I have been unable to find that exact method in ngx-moveable, but there is what I assume to be an angular version of that method called ngDragStart. When I attempt to use this method, I am seeing an error ERROR TypeError: Cannot read properties of undefined (reading 'dragStart'). I am unable to find any documentation for the ngDragStart method. I am not sure if I am using the method incorrectly, or if this is a bug.

It might also be useful to know that I am using dependency injection to get the required NgZone and ElementRef parameters.