xieziyu / angular2-draggable

Angular directive (for version >= 2.x ) that makes the DOM element draggable and resizable
https://xieziyu.github.io/angular2-draggable/
293 stars 103 forks source link

Mobile scrolling block #29

Open DarthFarzad opened 6 years ago

DarthFarzad commented 6 years ago

I stumbled upon this error when testing a website using this lib. All scrolling events are disabled I believe the root cause of this is here: @HostListener('document:touchmove', ['$event']) onTouchMove(event: any) { event.stopPropagation(); event.preventDefault(); if (this.moving && this.allowDrag) { this.moveTo(event.changedTouches[0].clientX, event.changedTouches[0].clientY); } } Also worth noting, the use of Renderer is deprecated in favour of Renderer2

xieziyu commented 6 years ago

Thanks for reporting this issue. Need to fix it.

xieziyu commented 6 years ago

Fixed in v1.1.0: Please use [preventDefaultEvent]="false" to fix this issue.