Comments (4)
Hey @g0vegan,
- Which version are you using? If
swipeClose
isfalse
, the picture cannot be swiped up. - I will improve this point.
from tobii.
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.
Thank you for your answer @g0vegan. Which browser do you use?
from tobii.
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)
- No/wrong recalculating of counter after removal of item HOT 6
- Missing :hover and :focus styling on prev and next buttons HOT 2
- Support for multiple lightbox instances. HOT 6
- missing close button for inline elements in some cases HOT 2
- How to initialize Tobii framework without using inline script in HTML? HOT 6
- Can't find out correct links for audio and video files playing in the lightbox - single and video source set HOT 5
- Style issues HOT 1
- Multiple Videos on a Single Page HOT 3
- Unrecognized feature: 'web-share' issue HOT 1
- Lazy loading for iframes / on demand loading HOT 2
- Start time attribute for YouTube HOT 1
- Grouping HOT 2
- When using group, duplicate links always opens the first item in the group HOT 2
- Smooth transition HOT 4
- IE11 broken HOT 2
- Adding/removing elements HOT 4
- Add in url #selector
- Problem opening iframe youtube video HOT 3
- Multiple You Tube Videos HOT 4
- Custom Properties Scoping HOT 8
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 tobii.