Add support for proxying mouseWheelMoved events
This commit is contained in:
@@ -83,7 +83,7 @@ public class Hooks
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
public static void mouseWheelMoved(MouseWheelEvent event)
|
||||
public static MouseWheelEvent mouseWheelMoved(MouseWheelEvent event)
|
||||
{
|
||||
throw new RuntimeException();
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ public abstract class RSMouseWheelHandlerMixin implements RSMouseWheelHandler
|
||||
@Replace("mouseWheelMoved")
|
||||
public void mouseWheelMoved(MouseWheelEvent event)
|
||||
{
|
||||
Hooks.mouseWheelMoved(event);
|
||||
event = Hooks.mouseWheelMoved(event);
|
||||
if (!event.isConsumed())
|
||||
{
|
||||
rs$mouseWheelMoved(event);
|
||||
|
||||
Reference in New Issue
Block a user