Browse Source

Disabled scroll change on idle

Fixed #666
master
Igor Zhukov 10 years ago
parent
commit
edbb2e6d7f
  1. 2
      app/js/controllers.js
  2. 2
      app/js/directives.js

2
app/js/controllers.js

@ -1393,7 +1393,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -1393,7 +1393,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
if (curPeer) {
$scope.historyState.typing.splice(0, $scope.historyState.typing.length);
$scope.$broadcast('ui_history_append_new', {my: addedMessage.my});
$scope.$broadcast('ui_history_append_new', {my: addedMessage.my, idle: $rootScope.idle.isIDLE});
if (addedMessage.my && $scope.historyUnreadAfter) {
delete $scope.historyUnreadAfter;
$scope.$broadcast('messages_unread_after');

2
app/js/directives.js

@ -800,7 +800,7 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -800,7 +800,7 @@ angular.module('myApp.directives', ['myApp.filters'])
curAnimation = false;
$scope.$on('ui_history_append_new', function (e, options) {
if (!atBottom && !options.my) {
if ((!atBottom || options.idle) && !options.my) {
return;
}
var curAnimated = animated &&

Loading…
Cancel
Save