[Mobile Bug] Cannot Reorder Media in Albums
When on mobile, it's impossible for users to reorder their media by tap and holding the hamburger icon as it prompts for the context menu rather than initializing the drag function like on Desktop.
-
- · Wise
- ·
Confirmed. Another mobile bug.
-
- · LoneTreeLeaf
-
·
In reply to Wise
- ·
Thing is, I tried to disable the context menu using javascript, and when I do that, it renders the hamburger button useless, so it's like there wasn't a function coded in at the UNA level for mobile users for that feature.
-
- · LoneTreeLeaf
-
·
In reply to Wise
- ·
let isDragging = false; document.addEventListener('contextmenu', function(e) { e.preventDefault(); }, false); document.addEventListener('touchstart', function(e) { // Allow drag and other touch interactions if (e.touches.length === 1) { isDragging = false; setTimeout(() => { if (!isDragging) { e.preventDefault(); } }, 300); // Adjust timeout to desired long press threshold } }, false); document.addEventListener('touchmove', function(e) { if (e.touches.length === 1) { isDragging = true; } }, false); document.addEventListener('mousedown', function(e) { if (e.detail > 1) { e.preventDefault(); } }, false); document.addEventListener('touchend', function(e) { if (e.touches.length > 1) { e.preventDefault(); } }, false);
-
- · Wise
- ·
Yeah, code needs updated for mobile.