-
Notifications
You must be signed in to change notification settings - Fork 705
Feat (attribute) : Infinite Loop Support #237
base: master
Are you sure you want to change the base?
Conversation
…ts, and i dont have a way to check in the application demo
The last Jasmine test is failing, but I wrote a quick $timeout function that adds a slide in the demo and the code behaves as expected, removing the old virtual slides and replacing them with the new head and tail of the repeatCollection. I'm not sure why it's failing in the test, any ideas? |
thanks for the great feature. |
Tested the new Feature and it's working great with ngRepeat. ReferenceError: copy is not defined
at http://0.0.0.0:9000/bower_components/angular-carousel/dist/angular-carousel.js:326:58
at nodeLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6711:13)
at compositeLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6105:13)
at compositeLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6108:13)
at compositeLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6108:13)
at compositeLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6108:13)
at publicLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6001:30)
at http://0.0.0.0:9000/bower_components/angular/angular.js:1449:27
at Scope.$eval (http://0.0.0.0:9000/bower_components/angular/angular.js:12702:28)
at Scope.$apply (http://0.0.0.0:9000/bower_components/angular/angular.js:12800:23) <ul rn-carousel="" rn-carousel-index="0" rn-carousel-loop="" class="carousel ng-scope" id="carousel1"> angular.js:10072(anonymous function) angular.js:10072(anonymous function) angular.js:7364nodeLinkFn angular.js:6714compositeLinkFn angular.js:6105compositeLinkFn angular.js:6108compositeLinkFn angular.js:6108compositeLinkFn angular.js:6108publicLinkFn angular.js:6001(anonymous function) angular.js:1449Scope.$eval angular.js:12702Scope.$apply angular.js:12800(anonymous function) angular.js:1447invoke angular.js:3966doBootstrap angular.js:1445bootstrap angular.js:1459angularInit angular.js:1368(anonymous function) angular.js:22025fire jquery.js:3073self.fireWith jquery.js:3185jQuery.extend.ready jquery.js:3391completed jquery.js:3407 It's reproducable using following HTML: <ul rn-carousel rn-carousel-index="0" rn-carousel-loop class="carousel">
<li><img src="images/slider/0103.jpg"/></li>
<li><img src="images/slider/0203.jpg"/></li>
<li><img src="images/slider/0303.jpg"/></li>
</ul> Update: Figured out variable copy was defined in a different scope. |
Well that was a bit sloppy on my part, sorry about that. I meant to be referencing firstCopy but used copy accidentally. Anyways just pushed the fix, everything should be good now. |
Hey @dcjohnston Thanks for that fast fix. You're awesome. It's working now but still a bit buggy. I also found out (I have Headlines and a paragraph too in each |
Hey @dcjohnston I run into a new problem (don't know if it happened when I did a bower update) You can see an example here http://goo.gl/QeKO22 when you slide trough the entire carousel. |
Good to see my work exploding in production :p. Do me a favor, and check the demo file in my repo and let me know if it's working for you (particularly the infinite loop demos). Everything there seems to be working. I'm looking at the site (nice work btw) and for some reason it looks like the virtual slides aren't visible, but all of the sliding logic is working as it should. I'm tempted to say it's an issue with the CSS used on the site, but I'll keep looking around. |
@dcjohnston Issue finally found. I'm using a lazyload mechanism for images and if there's no background image until the carousel initializes last slide is empty. Solved the issue by retriggering the lazyload. |
@revolunet What about applying the pull request? Using it in many sections in production for a while now without problems. @dcjohnston made a great job! |
This would be awesome! |
+1 |
how i can use infinite loop in hexagon animation? which distro i must use ? there is a callback afterchange? |
Is this likely to be merged soon? Really sort-after feature |
can you please resolve it ;) |
Hello, thanks for your slider. |
Thanks for this version! Saved me a day of work! :) |
Hello guys, is there any reason for not merging this branch. I will test it as it is exactly what I'm looking for. Regards, |
Hi, there's no legimate reason to not merge this except i can't maintain this repo anymore. Is there anyone willing to become collaborator here, rebase this feature and test that it doesnt break anything? Thanks |
Ok I understand, I'm just starting to work now on open source world, so I'm not fully aware of how to manage this kind of project and the time needed to do it. |
Ok this is quite simple; The bare minimum is to merge the most important pull requests, after have checked that it doesnt make any breaking changes. (ex: from the demo page) Depending on your time, you can also triage the issues/PR Once merged, you should publish a new version by respecting semantic versionning. I'll then publish to bower and npm. Available for any questions ! |
But is it possible to try a merge in my own fork ? |
can you please rebase your code on the last |
I have done a test it work base on the fork, now I will fork your master and create a new branch to compare with this fork. |
example rebase from your fork folder : git remote add upstream https://github.com/revolunet/angular-carousel.git
git fetch
git rebase upstream/master |
Bonjour Julien, Je viens de voir que tu étais français, ce sera plus simple pour les Désolé pour le délai j'étais moi aussi assez occupé. 2016-05-02 12:08 GMT+02:00 Julien Bouquillon [email protected]:
Julien PALAS |
Sorry guys a french message just to be sure that I'm fully aware on how to test my merge on this topic. Bonjour, Je viens de voir que tu étais français, ce sera plus simple pour les échanges car je suis un peu novice sur github et git. Donc voilà ce que j'ai fait, j'ai créé un fork de ton origin/master que j'ai ensuite chargé en local, puis j'ai fait un merge avec la branche de dcjohnson incluant la directive de loop et en faisant ce qui me semblait logique pour les conflits. J'ai ensuite réalisé un grunt build pour générer la version minifiée et fait un push sur origin/master de mon fork. Désolé pour le délai j'étais moi aussi assez occupé. |
Hey Julien, can you contact me on |
Hi, i've remerged all the work done in this fork : https://github.com/dcjohnston/angular-carousel Its currently in this branch : https://github.com/revolunet/angular-carousel/commits/merge-loop Would be great if some of you could test before any release thanks to @dcjohnston and @jup31and so sorry for the long delay on this PR but i dont use this project anymore so if some of you want to maintain the project, you're very welcome. |
Hi guys, I have some strange issue with the branch. I have 2 controls: %ul.slider.images{"rn-carousel"=>"", "rn-carousel-controls-allow-loop"=>"", "rn-carousel-loop"=>"", "rn-carousel-controls"=>"", "rn-carousel-index"=>"carouselIndex"}
%li{"ng-repeat"=>"image in sliderImages"}
.layer
%img{"ng-src"=>"{{image.unchanged}}"}
One control in ul odd out one |
I found the problem. There are two similar features. |
And one more strange effect: when you try fast swipe 2 or more slides on edge a slide become empty. This effect appears when it has 3 slides in carousel |
Hi, I saw that stuff and it instantly filled me with energy and hope, just take a look here http://spykikida.17again.com/xyxeus Typos courtesy of my iPhone, [email protected] |
Hey, Have you heard about that really wowsome stuff? You won't regret, believe me, read more here http://spymisasho.politicalresumes.net/xywjms My best to you, [email protected] |
Last link sent by Ngschumacher seems infected (JS:Downloader-DEH Trojan), maybe a bot. |
I've implemented infinite looping via the addition of an attribute 'rn-carousel-loop' to the element on which rn-carousel directive is placed. I've included tests, and I've noted in the README that looping is disabled if buffering is turned on.