Browse Source

Fixed glitch on jump

master
Igor Zhukov 8 years ago
parent
commit
53bf285800
  1. 2
      app/js/controllers.js
  2. 1
      app/js/directives.js
  3. 2
      app/partials/desktop/im.html

2
app/js/controllers.js

@ -1193,7 +1193,7 @@ angular.module('myApp.controllers', ['myApp.i18n']) @@ -1193,7 +1193,7 @@ angular.module('myApp.controllers', ['myApp.i18n'])
$scope.historyState.typing.splice(0, $scope.historyState.typing.length);
$scope.$broadcast('ui_peer_change');
$scope.$broadcast('ui_history_change');
safeReplaceObject($scope.state, {loaded: true, empty: !peerHistory.messages.length});
safeReplaceObject($scope.state, {loaded: true, empty: !peerHistory.messages.length, mayBeHasMore: true});
updateBotActions();
updateChannelActions();

1
app/js/directives.js

@ -1412,7 +1412,6 @@ angular.module('myApp.directives', ['myApp.filters']) @@ -1412,7 +1412,6 @@ angular.module('myApp.directives', ['myApp.filters'])
$(historyMessagesEl).css({marginTop: 0});
var marginTop = scrollableWrap.offsetHeight
- historyMessagesEl.offsetHeight
- 20
- (Config.Mobile ? 0 : 39);
if (historyMessagesEl.offsetHeight > 0 && marginTop > 0) {

2
app/partials/desktop/im.html

@ -112,7 +112,7 @@ @@ -112,7 +112,7 @@
</div>
<div class="im_history_messages" ng-class="{im_history_messages_group: historyPeer.id < 0}">
<div class="im_history_loading_more" ng-if="!state.empty" ng-class="{im_history_loading_more_active: state.moreActive}">
<div class="im_history_loading_more" ng-show="state.loaded && (!state.empty || state.mayBeHasMore)" ng-class="{im_history_loading_more_active: state.moreActive}">
<div my-arc-progress stroke="3" width="26"></div>
</div>
<div class="im_history_messages_peer" ng-show="peerHistory.peerID == historyPeer.id" ng-repeat="peerHistory in peerHistories">

Loading…
Cancel
Save