Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
crh3675 opened this issue Jul 2, 2019 · 1 comment
Open

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

crh3675 opened this issue Jul 2, 2019 · 1 comment

Comments

@crh3675
Copy link

crh3675 commented Jul 2, 2019

Just try on an iPhone

@crh3675
Copy link
Author

crh3675 commented Jul 3, 2019

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
              );```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant