Scroll to the profiler on timeline click

This commit is contained in:
Gaël Métais
2015-02-27 17:41:54 +01:00
parent 5732a8ffc8
commit cb535f1cee
6 changed files with 77 additions and 6 deletions
+5 -3
View File
@@ -18,9 +18,11 @@
&& $index * timelineIntervalDuration < result.toolsResults.phantomas.metrics.domComplete,
domComplete: $index * timelineIntervalDuration >= result.toolsResults.phantomas.metrics.domComplete
}">
<div style="height: {{100 * duration / timelineMax | number: 0}}px" class="color"></div>
<div style="height: {{100 * duration / timelineMax | number: 0}}px" class="color" ng-class="{clickable: duration > 0}" scroll-on-click="{{$index * timelineIntervalDuration}}"></div>
<div class="tooltip detailsOverlay">
<div>Timestamp: {{$index * timelineIntervalDuration | number: 0}} ms</div>
<div>
Timestamp: {{$index * timelineIntervalDuration | number: 0}} ms
</div>
</div>
</div>
</div>
@@ -75,7 +77,7 @@
showingDetails: node.showDetails,
jsError: node.error,
windowPerformance: node.windowPerformance
}">
}" id="line_{{$index}}">
<div class="index">{{$index + 1}}</div>
<div class="type">