|
@@ -7,7 +7,8 @@ define [
|
|
|
$scope.reviewPanel =
|
|
$scope.reviewPanel =
|
|
|
entries: {}
|
|
entries: {}
|
|
|
trackNewChanges: false
|
|
trackNewChanges: false
|
|
|
-
|
|
|
|
|
|
|
+ hasEntries: false
|
|
|
|
|
+
|
|
|
$scope.commentState =
|
|
$scope.commentState =
|
|
|
adding: false
|
|
adding: false
|
|
|
content: ""
|
|
content: ""
|
|
@@ -51,6 +52,9 @@ define [
|
|
|
scroller.off "scroll"
|
|
scroller.off "scroll"
|
|
|
$scope.onScroll = null
|
|
$scope.onScroll = null
|
|
|
|
|
|
|
|
|
|
+ $scope.$watch (() -> Object.keys($scope.reviewPanel.entries).length), (nEntries) ->
|
|
|
|
|
+ $scope.reviewPanel.hasEntries = nEntries > 0
|
|
|
|
|
+
|
|
|
# If we listen for scroll events in the review panel natively, then with a Mac trackpad
|
|
# If we listen for scroll events in the review panel natively, then with a Mac trackpad
|
|
|
# the scroll is very smooth (natively done I'd guess), but we don't get polled regularly
|
|
# the scroll is very smooth (natively done I'd guess), but we don't get polled regularly
|
|
|
# enough to keep Ace in step, and it noticeably lags. If instead, we borrow the manual
|
|
# enough to keep Ace in step, and it noticeably lags. If instead, we borrow the manual
|