Comments (6)
Native pinch to zoom??? sorry but it's a meta
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
El martes, 26 de febrero de 2013 a las 11:41, scottmwilliams escribió:
Hi I might have missed something but it seem as though Quo completely overrides the native Pinch to zoom on websites on iOS. It would be really nice if there was away to still use QuoJS and keep the pinch to zoom a website the users are so familiar with.
—
Reply to this email directly or view it on GitHub (#53).
from quojs.
Sorry probably didn't explain myself correctly. I want pinch to zoom to work normally.
- Pinch to zoom on my site works perfectly
- Add QuoJS file, pinch to zoom then stops working (I'm guessing it's taking over some how)
- Remove QuoJS pinch to zoom works normally again
I want to be able to use QuoJS and still keep the normal pinch to zoom funtionality. My site currently has no viewport meta tags so should function normally.
from quojs.
QuoJS works with meta >>
from quojs.
I too faced exactly the same problem as explained by scottwio, It doesn't matter if you have the meta viewport tag or not or if it has user-scalable yes or no, If Quojs is included, native pinch to zoom is disabled.
Didn't get more time to find the reason.
Using jquery mobile as the framework.
Page Setup:
No Hardcoded Meta Viewport in beginning. (If viewport is hardcoded, Jqm modifies it and disables user-scalable)
- Jquery
- Jquery Mobile
- QuoJs
4)$('', { // Fix to override jqm viewport hijack
name: 'viewport',
content: 'width=device-width, minimum-scale=1, maximum-scale=5, user-scalable=yes'
}).appendTo('head');
Native zoom works without QuoJs.
Tried hammerjs in place of QuoJs, Same scenario, but it doesn't disable native zoom.
What hammerjs does is that on pinchin it performs its user specified custom callback first then browser's native zoom takes place.
from quojs.
Actually, this is a real bug. You have it watching on touchmove on the body, and if fingers === 2 the you call event.preventDefault. This kills native zoom on devices. Strangely, I can get it to zoom occasionally, though not reliably. But if I take out the preventDefault call, then it works fine. This seems like a bug to me.
from quojs.
My comment is about the released version (2.3.6) Has this been fixed since then?
from quojs.
Related Issues (20)
- No conflict method HOT 6
- Browser Compatibility? HOT 1
- .off works only on events explicitly defined with .on HOT 2
- "hold" function won't show "currentTouch" object upon first hold
- Android 4 Bug HOT 3
- Is it the '2xFingers Tap' event was not implemented? HOT 1
- QUOJS Blocks jQuery Click Events on Mobile HOT 6
- Tap event not working HOT 3
- Please publish on npm HOT 6
- Site isn't useful without demo HOT 2
- QuoJs preventing click events in Android 5.0+ HOT 6
- why some android mobile phone can't use Swipe methods
- the checkbox and radio with label cannot be checked by click on the label HOT 1
- Multiple event .on() binding
- quojs and webpack HOT 2
- QouJS and Windows Phone HOT 7
- QuoJS file order HOT 1
- unable to preventdefault inside passive event listener invocation HOT 1
- How to actually link/install
- Expose duration and timeout configuration for gestures HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quojs.