mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-08 02:45:04 -04:00
completely change the CSS to be an entirely 'position: absolute' layout rather than top-to-bottom. makes the overscroll much more predictable and sane and not dependent on CSS expressions.
This commit is contained in:
parent
aebe5ce08a
commit
6c2db18be1
6 changed files with 46 additions and 29 deletions
|
@ -42,6 +42,8 @@ angular.module('RoomController', [])
|
|||
console.log("Got response from "+$scope.state.events_from+" to "+response.data.end);
|
||||
$scope.state.events_from = response.data.end;
|
||||
|
||||
$scope.feedback = "";
|
||||
|
||||
for (var i = 0; i < response.data.chunk.length; i++) {
|
||||
var chunk = response.data.chunk[i];
|
||||
if (chunk.room_id == $scope.room_id && chunk.type == "m.room.message") {
|
||||
|
@ -68,10 +70,12 @@ angular.module('RoomController', [])
|
|||
$timeout(shortPoll, 0);
|
||||
}
|
||||
}, function(response) {
|
||||
$scope.feedback = "Can't stream: " + JSON.stringify(response);
|
||||
$scope.feedback = "Can't stream: " + response.data;
|
||||
|
||||
if (response.status == 403) {
|
||||
$scope.stopPoll = true;
|
||||
}
|
||||
|
||||
if ($scope.stopPoll) {
|
||||
console.log("Stopping polling.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue