Fix showScreen not working.

This commit is contained in:
Gunther Brunner
2014-05-20 15:58:05 +09:00
parent db298377ec
commit 0b4e2a0b04
4 changed files with 4 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ module.exports = function logcatTableDirective($rootScope, $timeout, LogcatServi
.appendChild(document.createTextNode(data.message))
if (autoScroll && shouldAutoScroll() && !batchRequest) {
_.throttle(scrollToBottom, 10)()
_.throttle(scrollToBottom, 30)()
}
}

View File

@@ -44,7 +44,8 @@ module.exports = function LogcatServiceFactory(socket, DeviceService) {
function enhanceEntry(data) {
var date = new Date(data.date * 1000)
data.dateLabel = _s.pad(date.getHours(), 2, '0') + ':' +
data.dateLabel =
_s.pad(date.getHours(), 2, '0') + ':' +
_s.pad(date.getMinutes(), 2, '0') + ':' +
_s.pad(date.getSeconds(), 2, '0') + '.' +
_s.pad(date.getMilliseconds(), 3, '0')

View File

@@ -1,5 +1,4 @@
module.exports = function DeviceScreenCtrl($scope, $rootScope, ScalingService) {
$scope.displayError = false
$scope.ScalingService = ScalingService
}