dragscroll icon indicating copy to clipboard operation
dragscroll copied to clipboard

Mobile is a no-go, breaks <select> boxes

Open crh3675 opened this issue 5 years ago • 1 comments

Just try on an iPhone

crh3675 avatar Jul 02 '19 01:07 crh3675

nodrag attribute causes weird behavior. I move the functionality and works perfectly!

              (cont = el.container || el)[addEventListener](
                  mousedown,
                  cont.md = function(e) {
                      if (!el.hasAttribute('nochilddrag') ||
                          _document.elementFromPoint(
                              e.pageX, e.pageY
                          ) == cont
                      ) {
                          pushed = 1;
                          lastClientX = e.clientX;
                          lastClientY = e.clientY;
                          var tag = e.target;
                          if (!tag.hasAttribute('nodrag')) {
                            e.preventDefault();
                          }
                      }
                  }, 0
              );```

crh3675 avatar Jul 03 '19 11:07 crh3675