Skip to content

Commit 87df579

Browse files
committed
Further investigation shows that even onTouchEnd preventDefault() can kill input clicks
Ref: #116
1 parent 1264806 commit 87df579

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/DraggableCore.es6

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,6 @@ export default class DraggableCore extends React.Component {
402402
// We're on a touch device now, so change the event handlers
403403
dragEventFor = eventsFor.touch;
404404

405-
// HACK: Prevent 'ghost click' which happens 300ms after touchstart if the event isn't cancelled.
406-
// We don't cancel the event on touchstart because of #37; we might want to make a scrollable item draggable.
407-
// More on ghost clicks: http://ariatemplates.com/blog/2014/05/ghost-clicks-in-mobile-browsers/
408-
e.preventDefault();
409-
410405
return this.handleDragStop(e);
411406
};
412407

0 commit comments

Comments
 (0)