Skip to content

Commit

Permalink
Removed mergin clutter
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacko authored and Jacko committed Aug 8, 2012
1 parent 2b0ed9b commit afe35ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 41 deletions.
7 changes: 0 additions & 7 deletions source/controllers/scroll.js
Expand Up @@ -36,19 +36,12 @@ ControllerScroll.prototype.onScroll = function(event) {
if(!controller.jarallax.jumping_allowed) {
controller.jarallax.clearSmooth(controller.jarallax);
}

//console.log('preventing default');
//event.preventDefault();
//return false;
}



if (controller.isActive) {
var y = event.data.y || controller.target.scrollTop();
var progress = y/controller.scrollSpace;


if(!controller.smoothing){
controller.jarallax.setProgress(progress, true);
} else {
Expand Down
34 changes: 0 additions & 34 deletions source/jarallax.js
Expand Up @@ -61,37 +61,12 @@ Jarallax.prototype.setProgress = function (progress, isWeak) {
}else{
progress = Math.round(progress * 1000) / 1000;
}
<<<<<<< HEAD
this.prev_progress = this.progress;
this.progress = progress;
if(this.prev_progress !== progress) {
if (this.allowWeakProgress || !weak) {
this.previousTime = new Date();
this.currentTime = new Date();

var weak = isWeak || false;

for (var defaultValue in this.defaultValues) {
this.defaultValues[defaultValue].activate(this.progress);
}

for (var animation in this.animations) {
this.animations[animation].activate(this.progress);
}

for (var controller in this.controllers) {
this.controllers[controller].update(this.progress);
}

=======

if(this.progress != progress){
this.progress = progress;
if (this.allowWeakProgress || !weak) {
this.previousTime = new Date();

this.currentTime = new Date();

var weak = isWeak || false;

for (var defaultValue in this.defaultValues) {
Expand All @@ -106,7 +81,6 @@ Jarallax.prototype.setProgress = function (progress, isWeak) {
this.controllers[controller].update(this.progress);
}

>>>>>>> adba2cf... Fixed firefox broken scroll bar. Fixed bug which only implements default values
this.currentTime = new Date();
this.stepSize = Math.max(this.currentTime - this.previousTime, this.stepSize);
}
Expand Down Expand Up @@ -338,14 +312,6 @@ Jarallax.prototype.cloneAnimation = function (selector, adittionalValues, animat
return newAnimations;
};

<<<<<<< HEAD
=======
Jarallax.prototype.addImageSequence = function(container, imageName, leadingNumbers, callback){
//TODO
return false;
};

>>>>>>> adba2cf... Fixed firefox broken scroll bar. Fixed bug which only implements default values
////////////////////////////////////////////////////////////////////////////////
// Jarallax static methods /////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit afe35ab

Please sign in to comment.