[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.

  • 955
  • More
Replies (4)
    • Confirmed. Another mobile bug.

      • 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.

        • 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);
          
          
          
          • Yeah, code needs updated for mobile.

            Login or Join to comment.