Drag and Drop inconsistency between iOS and Android mobile devices for Planning Calendar
Explanation:
When you implement Planning calendar control with appointments that can be draggable and dropped on different position you receive two handlers (from the PlanningCalendarRow):
- appointmentDrop
- appoitnmentDragEnter
Bug:
When holding an appointment with a finger without moving the finger (aka entering Drag And Drop) on iOS devices the appointnmentDragEnter is not called, but on Android devices this handler is called (without actually moving the selected appointment).
Reproduce:
https://sapui5.hana.ondemand.com/#/entity/sap.m.PlanningCalendar/sample/sap.m.sample.PlanningCalendarModifyAppointments
I have downloaded this sample and just added console.log("drag enter") in the appointnmentDragEnter, than I changed the package json script for start to accept remote connections in order to test it on real device, and the bug is reproducing all the time.
The reason for this is because when you inspect the sample and change the device from chrome to mobile, there is no easy way to simulate drag and drop.
Expected behavior:
appointnmentDragEnter should be called only when you start moving around the selected appointment, the inconsistency is on Android devices
Thank you!
Hello @Kalo2412,
Thank you for sharing this finding. I've created an internal incident DINC0452235. The status of the issue will be updated here in GitHub.
Regards, Siyana
Hey @Kalo2412,
The issue was fixed in version 1.136 and is available in every version after. If you require a downport to another version please feel free to re-open the ticket.
Best, Diana