Many small fixes.

This commit is contained in:
RainLoop Team 2017-07-06 01:31:41 +03:00
parent 9188228f5d
commit ab374bbb71
13 changed files with 339 additions and 396 deletions

View file

@ -1,6 +1,5 @@
import window from 'window';
import $ from '$';
import _ from '_';
import ko from 'ko';
@ -457,11 +456,6 @@ class LoginUserView extends AbstractViewNext
}, Magics.Time50ms);
triggerAutocompleteInputChange(true);
if (Settings.appSettingsGet('activeBackgroud'))
{
this.initActiveBackgroud();
}
}
submitForm() {
@ -486,28 +480,6 @@ class LoginUserView extends AbstractViewNext
return true;
}
initActiveBackgroud() {
const
$bg = $('#rl-bg'),
movementStrength = 25,
winHeight = $win.height(),
winWidth = $win.width(),
height = movementStrength / winHeight,
width = movementStrength / winWidth,
winHeightHalf = winHeight / 2,
winWidthHalf = winWidth / 2;
$bg.addClass('animated');
$('#rl-app').on('mousemove', _.throttle((e) => {
$bg.css({
top: height * (e.pageY - winHeightHalf) * -1 - movementStrength,
left: width * (e.pageX - winWidthHalf) * -1 - movementStrength
});
}, 1));
}
}
export {LoginUserView, LoginUserView as default};