diff --git a/ui/layer_controller.go b/ui/layer_controller.go index 0210544..9f8d922 100644 --- a/ui/layer_controller.go +++ b/ui/layer_controller.go @@ -148,7 +148,6 @@ func (controller *LayerController) PageDown() error { if targetLayerIndex > len(controller.Layers) { step -= targetLayerIndex - (len(controller.Layers) - 1) - targetLayerIndex = controller.LayerIndex + step } if step > 0 { @@ -167,7 +166,6 @@ func (controller *LayerController) PageUp() error { if targetLayerIndex < 0 { step += targetLayerIndex - targetLayerIndex = controller.LayerIndex - step } if step > 0 {