Prevent zoom from zooming out to the right of the timeline

This commit is contained in:
johni0702
2015-08-14 13:16:39 +02:00
parent f01e4ae06c
commit 0e5191e755

View File

@@ -583,6 +583,9 @@ public class GuiReplayOverlay extends Gui {
}
// Setup scrollbar and timelines
if (timelineReal.timeStart + timelineReal.zoom > 1) {
timelineReal.timeStart = 1 - timelineReal.zoom;
}
scrollbar.size = timelineReal.zoom;
scrollbar.sliderPosition = timelineReal.timeStart;