(int scroll)
| 230 | } |
| 231 | |
| 232 | @Override |
| 233 | public void scroll(int scroll) { |
| 234 | this.scrollPos += scroll; |
| 235 | int chatLines = this.singleChatLines.size(); |
| 236 | if (this.scrollPos > chatLines - this.getLineCount()) { |
| 237 | this.scrollPos = chatLines - this.getLineCount(); |
| 238 | } |
| 239 | |
| 240 | if (this.scrollPos <= 0) { |
| 241 | this.scrollPos = 0; |
| 242 | this.isScrolled = false; |
| 243 | } |
| 244 | |
| 245 | } |
| 246 | |
| 247 | @Override |
| 248 | public void drawComponentHover(int mouseX, int mouseY) { |
no test coverage detected