@@ -291,13 +291,8 @@ public boolean mouseScrolled(double mouseX, double mouseY,
291291 verticalAmount );
292292 }
293293
294- @ Override
295- public boolean mouseClicked (net .minecraft .client .gui .Click context ,
296- boolean doubleClick )
294+ public boolean mouseClicked (double mouseX , double mouseY , int button )
297295 {
298- double mouseX = context .x ();
299- double mouseY = context .y ();
300- int button = context .button ();
301296 if (button == 0 && scrollMax > 0 )
302297 {
303298 if (isOverScrollbarThumb (mouseX , mouseY ))
@@ -324,15 +319,12 @@ public boolean mouseClicked(net.minecraft.client.gui.Click context,
324319 return true ;
325320 }
326321 }
327- return super .mouseClicked (context , doubleClick );
322+ return super .mouseClicked (mouseX , mouseY , button );
328323 }
329324
330- @ Override
331- public boolean mouseDragged (net .minecraft .client .gui .Click context ,
325+ public boolean mouseDragged (double mouseX , double mouseY , int button ,
332326 double deltaX , double deltaY )
333327 {
334- double mouseY = context .y ();
335- int button = context .button ();
336328 if (draggingScrollbar && button == 0 && scrollMax > 0 )
337329 {
338330 int trackRange =
@@ -348,18 +340,17 @@ public boolean mouseDragged(net.minecraft.client.gui.Click context,
348340 }
349341 return true ;
350342 }
351- return super .mouseDragged (context , deltaX , deltaY );
343+ return super .mouseDragged (mouseX , mouseY , button , deltaX , deltaY );
352344 }
353345
354- @ Override
355- public boolean mouseReleased (net .minecraft .client .gui .Click context )
346+ public boolean mouseReleased (double mouseX , double mouseY , int button )
356347 {
357- if (context . button () == 0 && draggingScrollbar )
348+ if (button == 0 && draggingScrollbar )
358349 {
359350 draggingScrollbar = false ;
360351 return true ;
361352 }
362- return super .mouseReleased (context );
353+ return super .mouseReleased (mouseX , mouseY , button );
363354 }
364355
365356 private boolean isOverScrollbarThumb (double mouseX , double mouseY )
0 commit comments