Giter Site home page Giter Site logo

Swipe-up and swiping off-image about tobii HOT 4 CLOSED

midzer avatar midzer commented on May 19, 2024
Swipe-up and swiping off-image

from tobii.

Comments (4)

 avatar commented on May 19, 2024

Hey @g0vegan,

  1. Which version are you using? If swipeClose is false, the picture cannot be swiped up.
  2. I will improve this point.

from tobii.

g0vegan avatar g0vegan commented on May 19, 2024

I am not sure exactly where to find the version, but this is copied from package.json:

"version": "2.0.0-alpha",
"description": "An accessible, open-source lightbox with no dependencies.",
"main": "dist/js/tobii.js",
"style": "dist/css/tobii.css",
"devDependencies": {
"@babel/core": "^7.8.6",
"@babel/preset-env": "^7.8.6",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"autoprefixer": "^9.7.4",
"rollup": "^1.32.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-babel-minify": "^9.1.1",
"standard": "^14.3.1"
}

This is my configuration:

var tobii = new Tobii({
zoom: false,
swipeClose: false,
threshold: 5
});

Images can be swiped left, right, or up but not down. When swiped up, they come back down and nothing else happens.

from tobii.

 avatar commented on May 19, 2024

Thank you for your answer @g0vegan. Which browser do you use?

from tobii.

g0vegan avatar g0vegan commented on May 19, 2024

I have tested on several browsers and it happens on all of them, the latest versions of:

Firefox
Chrome
Edge
Brave

The same thing happens on every one...

The only possibly unusual thing that I am doing is that I block the default click event as follows using CSS:

a.lightbox {
pointer-events: none;
}

... and instead use a button that performs tobii.open(photoID) when clicked. I cannot see how that would affect "swipe up" though; everything else works perfectly.

from tobii.

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.