Skip to content

Commit

Permalink
Released 0.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
oblador committed Aug 13, 2015
1 parent b25cffa commit b2a1a8e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions angular-scroll.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ angular.module('duScroll', [
//Which events on the container (such as body) should cancel scroll animations
.value('duScrollCancelOnEvents', 'scroll mousedown mousewheel touchmove keydown')
//Whether or not to activate the last scrollspy, when page/container bottom is reached
.value('duScrollBottomSpy', false);
.value('duScrollBottomSpy', false)
//Active class name
.value('duScrollActiveClass', 'active');


angular.module('duScroll.scrollHelpers', ['duScroll.requestAnimation'])
Expand Down Expand Up @@ -248,7 +250,7 @@ angular.module('duScroll.requestAnimation', ['duScroll.polyfill'])


angular.module('duScroll.spyAPI', ['duScroll.scrollContainerAPI'])
.factory('spyAPI', ["$rootScope", "$timeout", "$window", "$document", "scrollContainerAPI", "duScrollGreedy", "duScrollSpyWait", "duScrollBottomSpy", function($rootScope, $timeout, $window, $document, scrollContainerAPI, duScrollGreedy, duScrollSpyWait, duScrollBottomSpy) {
.factory('spyAPI', ["$rootScope", "$timeout", "$window", "$document", "scrollContainerAPI", "duScrollGreedy", "duScrollSpyWait", "duScrollBottomSpy", "duScrollActiveClass", function($rootScope, $timeout, $window, $document, scrollContainerAPI, duScrollGreedy, duScrollSpyWait, duScrollBottomSpy, duScrollActiveClass) {
'use strict';

var createScrollHandler = function(context) {
Expand Down Expand Up @@ -294,11 +296,11 @@ angular.module('duScroll.spyAPI', ['duScroll.scrollContainerAPI'])
}
if(currentlyActive === toBeActive || (duScrollGreedy && !toBeActive)) return;
if(currentlyActive) {
currentlyActive.$element.removeClass('active');
currentlyActive.$element.removeClass(duScrollActiveClass);
$rootScope.$broadcast('duScrollspy:becameInactive', currentlyActive.$element);
}
if(toBeActive) {
toBeActive.$element.addClass('active');
toBeActive.$element.addClass(duScrollActiveClass);
$rootScope.$broadcast('duScrollspy:becameActive', toBeActive.$element);
}
context.currentlyActive = toBeActive;
Expand Down
2 changes: 1 addition & 1 deletion angular-scroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion angular-scroll.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-scroll",
"version": "0.7.1",
"version": "0.7.2",
"main": "angular-scroll.js",
"ignore": [
"**/.*",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-scroll",
"version": "0.7.1",
"version": "0.7.2",
"description": "Scrollspy, animated scrollTo and scroll events",
"keywords": [
"angular",
Expand Down

0 comments on commit b2a1a8e

Please sign in to comment.