Recipe 25 | Mobile Drag and Drop |
Problem
We have a pop-up window on our website that we use to display product details. This pop-up is draggable so users can move the detail window to the side of the screen, allowing them to browse the site while the pop-up is visible. Unfortunately, we’ve received some feedback from users with iPads that they can’t move the pop-up windows.
Drag-and-drop functionality has been an easy feature to add to websites for a while now. Various plug-ins are available that can add it with little effort, and it’s not even that difficult to write from scratch. The problem with these plug-ins is that most of them don’t work on mobile devices, because they respond only to events triggered by the user’s mouse. We need to make ...
Get Web Development Recipes, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.