Comments (3)
I guess because you set index to images length scope.index = scope.images.length in scope.prevImage function. Actually, it should be set to scope.images.length - 1 as we are dealing images from index=0 and not index = 1
from nggallery.
About which version do you talk?
In master scope.prevImage is the following code:
scope.prevImage = function () {
scope.index -= 1;
if (scope.index < 0) {
scope.index = scope.images.length - 1;
}
showImage(scope.index);
};
https://github.com/SchwarzwaldFalke/ngGallery/blob/master/src/js/ngGallery.js
from nggallery.
@SchwarzwaldFalke Sorry, I grabbed js file from your preview website http://demo.jankuri.com/ngGallery
There I thinks is the old version.
from nggallery.
Related Issues (20)
- How to set downloadSrc? HOT 1
- scrollLeft error HOT 3
- Wrong size of ng-thumbnails-wrapper if thumbnails width is not equal
- No close button, downloadbutton and navigation arrows HOT 6
- Errors HOT 2
- Page scrolling in background HOT 3
- Image keyframe animation (fadein) make it shake at the end of the animation
- Cannot override default baseClass and thumbClass
- how to resolve a error Cannot read property '0' of undefined HOT 2
- Original image not showing
- Delete action HOT 3
- Image paging HOT 1
- Add ability to close gallery when click to the overlay body than using ESC key
- Add git tags
- Which files need to be hosted? HOT 1
- ngAnimate preserves photo for 0.5s
- Demo URL broken HOT 3
- Delete action was merged?
- Image orientation cannot be manipulated
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 nggallery.