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

iOS safari shows zoom on longpress, is it possible to fix? #185

Open
wvddrss opened this issue Apr 19, 2022 · 1 comment
Open

iOS safari shows zoom on longpress, is it possible to fix? #185

wvddrss opened this issue Apr 19, 2022 · 1 comment
Labels

Comments

@wvddrss
Copy link

wvddrss commented Apr 19, 2022

On iOS when I press long on the joystick, I get built-in zoom view.
I don't know if this possbile to fix, after some googling tried

  • { user-select: none }

But didnt work

Screenshots, Codepen or JSFiddle
IMG_1358

Smartphone (please complete the following information):

  • Device: iphone 11
  • OS: ios 15.4
  • Browser: safari

Additional context
Add any other context about the problem here.

@wvddrss wvddrss added the bug label Apr 19, 2022
@Txori
Copy link

Txori commented Jun 22, 2022

Hi. Just add this noselect css class to the div that contains your nipple:

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

(maybe this should be added directly to nipplejs source?)

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

No branches or pull requests

2 participants