- Home
- Forum
- Angular - EJ 2
- Drag and drop does not work with touch event/ touch screen devices
Drag and drop does not work with touch event/ touch screen devices
Hello Team,
I am referring to one of the sample of external drag and drop
https://ej2.syncfusion.com/angular/demos/#/material/schedule/external-drag-drop .
The above sample works fine with the mouse events but when i try to run sample with touch event. Drag does not work.
Failed scenario:
On touch based devices or Simulate application for touch devices - drag and drop appointment from 10.00AM to 13.00PM or any different time.Drag itself does not work.
I do not want to display quick-info box as well as open editor dialog. Simply drag and drop appointment and update with touch event.
Working Scenario: Simulate application for touch screen, drag appointment from waiting list and drop on timeline.
Kindly guide to solve this issue.
Thanks in advance.
- Whether the issue replicates in specific browser or device?
- Share issue replicating video
- Share the error details if you are facing any script errors?
- Share whether you are done any customization in dragStop event?
- Can you please confirm whether you are using emulator (or) real device to test your application?
Hello Satheesh ,
Thanks for your reply,
- The issue is replicates on both device and Simulator using chrome or edge browser. for browser on desktop I am enforcing the touch event.
- The console is clear, it does not show any error.
-
I have disabled the showInfobox on single tap/click by setting its value false
- With respect to events, onPopupOpen ,I am disabling editor dialog window on double click/tap with args.cancel = true; So the whenever I tap and hold appointment, it should allow me to drag and drop. What I have observed is, its not triggering any of event dragStart, dragStop, onActionBegin. But specifically allows resize of appointments by vertical stretch. So the trouble is with shifting appointments.
Observed same issues with -
https://ej2.syncfusion.com/angular/documentation/schedule/appointments/#drag-and-drop-appointments when executed with disabling editor and info dialog and tried to drag drop.
With mouse event everything works perfectly.
Thanks,
Swarupa N
- Share the above sample with modifying code to replicate the issue
- Share issue replicating sample if possible
- Share all schedule related code snippets along with the Syncfusion package version
- Share issue replicating video
Hello Satheesh,
I have tried to execute the sample provided by you - https://stackblitz.com/edit/angular-schedule-drag-drop?file=app.component.ts But still faced same issue. I have followed the tap and hold gesture for touch event as well.
Please find the attached video while running he sample and also the chrome developer tool settings to enable touch event.
Same replicates over touch device as well.
Attachment: Dragdropsyncfusion_cc7ea345.zip
Hello Satheesh,
As you see in the attached video, vertical up-down stretch works properly, only the thing not able to change time slot and dates as shifting is blocked.
Note : On mobile browser it works fine. But if you open browser as 'Desktop Site' it breaks
Thanks and regards,
Swarupa N
Attachment: Syncfusion_drag_and_drop_1_7affdfbe.zip
Thank you for your reply Satheesh.
On Chrome browser : The tap and hold is performed with mouse, setting touch event.
On actual touch screen device[mobile/tablet] : The tap and hold is performed with finger tip.
As I mentioned earlier , for sample - https://stackblitz.com/edit/angular-schedule-drag-drop?file=app.component.ts
on mobile/tablets drag and drop works when opened in Non-Desktop Mode. But when we check 'Desktop Site' from browser setting. drag and drop stops working.
Hi Satheesh ,
Thanks for your update and support to resolve this issue.
Regards,
Swarupa N
- 11 Replies
- 3 Participants
-
SN Swarupa N
- Jun 28, 2021 11:05 AM UTC
- Jul 14, 2021 04:09 PM UTC