Completely rehauled scrolling system, finished base implementation
Этот коммит содержится в:
@@ -39,8 +39,7 @@ module.exports = React.createClass({
|
||||
}
|
||||
},
|
||||
resize: function() {
|
||||
$(".post-list-holder-by-time").scrollTop(100000);
|
||||
$(".post-list-holder-by-time").perfectScrollbar('update');
|
||||
// Scrolling Code Was Here
|
||||
},
|
||||
getInitialState: function() {
|
||||
return getStateFromStores();
|
||||
@@ -49,7 +48,7 @@ module.exports = React.createClass({
|
||||
if (! (this.state.search_visible || this.state.post_right_visible)) {
|
||||
$('.inner__wrap').removeClass('move--left').removeClass('move--right');
|
||||
$('.sidebar--right').removeClass('move--left');
|
||||
this.resize();
|
||||
// Scrolling Code Was Here
|
||||
return (
|
||||
<div></div>
|
||||
);
|
||||
@@ -59,7 +58,7 @@ module.exports = React.createClass({
|
||||
$('.sidebar--left').removeClass('move--right');
|
||||
$('.sidebar--right').addClass('move--left');
|
||||
$('.sidebar--right').prepend('<div class="sidebar__overlay"></div>');
|
||||
this.resize();
|
||||
// Scrolling Code Was Here
|
||||
setTimeout(function(){
|
||||
$('.sidebar__overlay').fadeOut("200", function(){
|
||||
$(this).remove();
|
||||
|
||||
Ссылка в новой задаче
Block a user