Code Monkey home page Code Monkey logo

Comments (3)

dvdotsenko avatar dvdotsenko commented on June 29, 2024

Puzzled by this.

Opera Mini is not a "web browser" but more of "remotely-rendered images viewer" Page is rendered on server and an image (with a fancy click map) is sent to Opera Mini. jSignature (or any other page that uses javascript for interactive in-browser behavior) will NOT (ever?) work on Opera Mini. (Apple does not allow alternative browsers on i-devices, yet they allowed Opera Mini. Hint? :) )

The issue of jSignature likely never working in Opera Mini aside, I cannot understand the viewport issue. I tried jSignature's demo page in: (1) Opera Mini on iPad, (2) Opera Mini on Android, (3) Opera Mobile on Android. The signature pad was rendered to size and in case #3 it actually worked (i could sign). When you saw the issues with viewport you report, was it on your pages or on jSignature's Demo page?

jSignature's Demo page uses 2 viewport instructions in the head tag, one tuned for mobile Androids, one for "others mobile" (Safari, Opera, Firefox, and Android as well if it ever switches to it). This combination proved to be the best guarantor of good cross-browser-compatible viewport scaling on mobile browsers.

<!-- this is for mobile (Android) Chrome -->
<meta name="viewport" content="initial-scale=1.0, target-densitydpi=device-dpi" />
<!--  mobile Safari, FireFox, Opera Mobile. "device-HEIGHT" is intentional  -->
<meta name="viewport" content="initial-scale=1.0, width=device-height">

It's not specific to jSignature, so these are not discussed in the documentation. I feel like we should probably discuss this in the docs.

from jsignature.

seanbamforth avatar seanbamforth commented on June 29, 2024

Gah!

I probably meant Opera Mobile. The behaviour exhibited on Android devices. The issue reported was with our own code, but apart from the removal of modernizr, the code was exactly the same as yours.

I'll close the issue.
Thanks for the response.

from jsignature.

dvdotsenko avatar dvdotsenko commented on June 29, 2024

The issue of sig area being wider than 'screen' may still, by freak accident, be an issue caused by jSignature. JSignature tries to be smarty pants about sizing and listens to window resize events, looks at parent's size and rescales itself. I colud imagine situations where Parent sizing oddities (playing around withoverflow value on parents, pushing an absolutely position elem off the screen after 'redy' already fired) may cause jSignature to rescale too wide.

If you think there is a chance of jSignature scaling too far, shoot me example.

from jsignature.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.