Skip to content

Commit 0ed0410

Browse files
authored
Merge pull request #223 from McGiverGim/fix_zoom_shortcut
Fix slider and shortcuts
2 parents 7741610 + 8497c4a commit 0ed0410

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

js/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ function BlackboxLogViewer() {
18121812
newGraphConfig(lastGraphConfig);
18131813
}
18141814
} else {
1815-
(graphZoom==GRAPH_MIN_ZOOM)?setGraphZoom(null, false):setGraphZoom(GRAPH_MIN_ZOOM, false);
1815+
(graphZoom==GRAPH_MIN_ZOOM)?setGraphZoom(null, true):setGraphZoom(GRAPH_MIN_ZOOM, true);
18161816
}
18171817
} catch(e) {
18181818
console.log('Workspace toggle feature not functioning');
@@ -1926,11 +1926,11 @@ function BlackboxLogViewer() {
19261926
tooltips: percentageFormat,
19271927
format: percentageFormat
19281928
})
1929-
.on("slide change set", function() {
1929+
.on("slide", function() {
19301930
setPlaybackRate(parseFloat($(this).val()), false);
19311931
})
19321932
.dblclick(function() {
1933-
$(this).val(100);
1933+
setPlaybackRate(100, true);
19341934
});
19351935

19361936
$(".playback-rate-control .noUi-handle").text( playbackRate + '%');
@@ -1948,11 +1948,11 @@ function BlackboxLogViewer() {
19481948
tooltips: true,
19491949
format: percentageFormat
19501950
})
1951-
.on("slide change set", function() {
1951+
.on("slide", function() {
19521952
setGraphZoom(parseFloat($(this).val()), false);
19531953
})
19541954
.dblclick(function() {
1955-
$(this).val(100);
1955+
setGraphZoom(100, true);
19561956
});
19571957

19581958
$('.navbar-toggle').click(function(e) {

0 commit comments

Comments
 (0)