Line 132: | Line 132: | ||
sec1.stop().animate({'top':10},1); | sec1.stop().animate({'top':10},1); | ||
}; | }; | ||
− | if(y< | + | if(y<sec3_pos-40){ |
if(y>sec2_pos){ | if(y>sec2_pos){ | ||
console.log('sec 2 supposed to move'); | console.log('sec 2 supposed to move'); | ||
Line 140: | Line 140: | ||
sec2.stop().animate({'top':10},1); | sec2.stop().animate({'top':10},1); | ||
}; | }; | ||
− | if(y< | + | if(y<sec4_pos-40){ |
if(y>sec3_pos){ | if(y>sec3_pos){ | ||
console.log('sec 3 supposed to move'); | console.log('sec 3 supposed to move'); |
Revision as of 00:00, 18 October 2016