Git Product home page Git Product logo

Comments (6)

ericmulder avatar ericmulder commented on July 29, 2024

The iPhone window object gives a 60 px offset because when loading the address bar is visible. When scrolling down the address bar hides, and the window size gets bigger.

To fix this, I added a hardcoded condition for the iphone on line 351:

    var ww = $( window ).width(),
        wh = $( window ).height(),
        iw = $img.width(),
        ih = $img.height(),
        rw = wh / ww,
        ri = ih / iw,
        newWidth, newHeight,
        newLeft, newTop,
        properties;

    var IS_IPHONE = (navigator.userAgent.match(/iPhone/i) != null) || (navigator.userAgent.match(/iPod/i) != null);
    if (IS_IPHONE) {
        ww += 60;
        wh += 60;
    }

from vegas.

jay-b avatar jay-b commented on July 29, 2024

Thanks, that has worked a treat.

from vegas.

jcbo avatar jcbo commented on July 29, 2024

Hello,
i have also this gap at bottom on iphone...
could you tell me where and how(complete script) to place your condition?
would be very kind of you,

thank you

from vegas.

pateljatin avatar pateljatin commented on July 29, 2024

Hi,

I'm seeing this issue now on Firefox 35.0.1 Desktop browser (more apparent on Windows than Mac) - quite frequently. I've also set fade to 0 and it's more visible.

Thanks,
JP

from vegas.

pateljatin avatar pateljatin commented on July 29, 2024

Update:
somehow it gets fixed if I remove the fade option and set the overlay. if I do not set the overlay, then it is quite visible. I also then added fade at 1000 rate and it does work but still you can see the issue on some pictures initially - however when overlay kicks in immediately, it fixes it.
Just thought I should update you on it...
So I set the overlay to 2.png and fade at 1000.

Thanks,
JP

from vegas.

jaysalvat avatar jaysalvat commented on July 29, 2024

Thanks for the info.

from vegas.

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.