Main krpano website

  • Hi Klaus,
    I just discovered something about your website I was hoping you might share. On the banner image panorama's, when viewed with iPad, you can 2 finger swipe on the image and make the panorama begin playing in what appears to be a dropdown iframe or something. I was wondering if you might share this little trick (code) for the "2 finger swipe drop down pano player".

    Thanks,
    Tony

  • Hi,

    that's just plain simple and not very well written javascript:

    touch event were added to the 'image bar' and the touch-down position remembered, and on the touch-release the release position is compared to to that remembered position, and when it was moved 100px down it scales the imagebar to fit the page and then inserts an iframe with a link to the pano...

    here the touch related JS code:

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!