2

I'm developing a presentation-like local site (will be local, displayed on several screens and that's all) and i pick to develop on chrome (you know, awesome support for all neat stuff). Chrome will run as full screen window, on top of windows 7 (or maybe 8, who knows?)

The app/site will be operable trough a multi touch screen.

However!

Since the screen is multitouch, on pinch everything is zoomed in/out. There is a way of disabling this? (even with a separate app that will work on background, dunno). Also, i would like to be able to use multitouch in the app later on, but on custom stuff, not on screen resize...

Btw, i tried the trick i used on an iphone app:

document.addEventListener('mousemove', function(e){ e.preventDefault(); }, false);

and:

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

But it seems it doesn't work.

Sooo... Any ideas?

Thanks!

8
  • Which version of Chrome? AFAIK <meta name="viewport"> only landed in Chrome 19, and it's disabled until Chrome 20.
    – ephemient
    Apr 5, 2012 at 20:01
  • Latest version of chrome, auto updating. Apr 6, 2012 at 3:16
  • Right now, the Chrome stable channel is 17, beta is 18, and unstable is 19. I'm not sure if canary is 20 or not, but you can build from source. If you're not building your own, go to About to see which channel you're on.
    – ephemient
    Apr 6, 2012 at 3:29
  • 18.x. Hmm... I'll try to use canary. Thanks Apr 6, 2012 at 3:37
  • 1
    peter.sh/experiments/chromium-command-line-switches says there's an --enable-viewport switch but I don't see it in the latest source code.
    – ephemient
    Apr 6, 2012 at 17:59

2 Answers 2

1

Best solution for now (until google updates chrome, if they ever will) is to disable gestures in your touchscreen/mouse/touchpad settings. Control panel -> Mouse -> Device Settings -> (pick device) -> Settings -> Disable pinch zoom.

1

I am working on a similar project (browser-based digital kiosk with multitouch screen) and ran in to the same problem.

Since I have not found a work around in Chrome I am switching to Firefox. You can disable pinch zooming in Firefox by navigating to 'about:config' and changing the values for browser.gesture.pinch.in and browser.gesture.pinch.out to "".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.