cedvdb / ng2draggable

draggable directive for angular 2
https://cedvdb.github.io/ng2draggable/
MIT License
18 stars 16 forks source link

forgot $event dependecy onMouseUp HostListener #9

Closed morwn closed 7 years ago

morwn commented 7 years ago

Hey, please add $event dependecy on mouseUp event.

from: @HostListener('document:mouseup') to: @HostListener('document:mouseup', [ '$event' ])

so we can use event parameter.

cedvdb commented 7 years ago

@morwn added. Watchout if you are using an earlier version than 1.3.0 and if you are somehow using an handler. https://github.com/cedvdb/ng2draggable#drag-element-with-child-element