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

Method itemPageUp

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

Source from the content-addressed store, hash-verified

1044 }
1045
1046 private boolean itemPageUp() {
1047 stickyWindow=false;
1048 Object o = getFocusedObject();
1049 if (o == null) {
1050 return false;
1051 }
1052
1053 if (((VirtualElement) o).getVHeight() <= winHeight) {
1054 //stickyWindow=true;
1055 return false;
1056 }
1057
1058 if (!cursorInWindow()) {
1059 return false;
1060 }
1061
1062 int remainder = win_top - itemLayoutY[cursor];
1063 if (remainder <= 0) {
1064 return false;
1065 }
1066 if (remainder <= winHeight) {
1067 win_top = itemLayoutY[cursor];
1068 return true;
1069 }
1070
1071 win_top -= winHeight - stringHeight;//-stringHeight;
1072 return true;
1073 }
1074
1075 public void pageLeft() {
1076 if (getItemCount()==0)

Callers 1

keyUpMethod · 0.95

Calls 3

getFocusedObjectMethod · 0.95
cursorInWindowMethod · 0.95
getVHeightMethod · 0.65

Tested by

no test coverage detected