MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / itemPageDown

Method itemPageDown

src/main/java/ui/VirtualList.java:1017–1044  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1015 }
1016
1017 private boolean itemPageDown() {
1018 stickyWindow = false;
1019 Object o = getFocusedObject();
1020 if (o == null) {
1021 return false;
1022 }
1023
1024 if (((VirtualElement) o).getVHeight() <= winHeight) {
1025 stickyWindow = true;
1026 return false;
1027 }
1028
1029 if (!cursorInWindow()) {
1030 return false;
1031 }
1032
1033 int remainder = itemLayoutY[cursor + 1] - win_top;
1034 if (remainder <= winHeight) {
1035 return false;
1036 }
1037 if (remainder <= 2 * winHeight) {
1038 win_top = remainder - winHeight + win_top + 8;
1039 return true;
1040 }
1041
1042 win_top += winHeight - stringHeight;//-stringHeight;
1043 return true;
1044 }
1045
1046 private boolean itemPageUp() {
1047 stickyWindow=false;

Callers 1

keyDwnMethod · 0.95

Calls 3

getFocusedObjectMethod · 0.95
cursorInWindowMethod · 0.95
getVHeightMethod · 0.65

Tested by

no test coverage detected