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

Zoom Problem #484

Closed
bliet opened this issue Sep 21, 2016 · 5 comments
Closed

Zoom Problem #484

bliet opened this issue Sep 21, 2016 · 5 comments

Comments

@bliet
Copy link

bliet commented Sep 21, 2016

The normal behavior of IE11 and Edge is to Zoom in by a Double Tap.
That is a problem because you cannot type fast on the OSK. Is there a way to solve this issue?

@Mottie
Copy link
Owner

Mottie commented Sep 21, 2016

Hi @bliet!

I haven't tried this, but I read here that you'll need to create a css file with the following:

body {
  -ms-touch-action: manipulation !important;
}

Then add that file as a user style sheet in Tools → Internet Options → Accessibility.

I haven't tried adding the css to the page or directly to the keyboard container yet, but I'm in a hurry this morning.

@bliet
Copy link
Author

bliet commented Sep 21, 2016

I cannot use a solutions, which the user have to change in his internet options.

I tried this in my code:

.ui-keyboard div {
  -ms-touch-action: manipulation !important;
}

and this:

body {
  -ms-touch-action: manipulation !important;
}

It doesn't work.
I am using hammer.js on other objects. There the double tab doesn't fire a zoom. Mybe i will combine hammer.js with the OSK tomorrow.

@Mottie
Copy link
Owner

Mottie commented Sep 21, 2016

Hmm, so I read somewhere else that IE10 and IE11 are different LOL

And please try targeting the keyboard elements, not the divs inside:

.ui-keyboard {
    -ms-touch-action: manipulation; /* IE10  */
    touch-action: manipulation;     /* IE11+ */
}

Also, try adding a meta tag to disable zooming:

<meta name="viewport" content="width=device-width, user-scalable=no">

Either way, I will likely add options to allow setting your own keybinding as I think the best method would be to use PEP.

@bliet
Copy link
Author

bliet commented Sep 22, 2016

I use a viewport already. But I don't want to disable the scale for the hole site, only for the keyboards.

I will try the "touch-action" tomorrow. Many thanks. (UPDATE: It works.)

@bliet bliet closed this as completed Sep 23, 2016
@Mottie
Copy link
Owner

Mottie commented Sep 23, 2016

Oh great!, I'll add those definitions to the keyboard container then.

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

No branches or pull requests

2 participants