Garry's Mod Wiki

PANEL:OnCursorMoved

  boolean PANEL:OnCursorMoved( number cursorX, number cursorY )

Description

Called whenever the cursor was moved with the panels bounds.

Arguments

1 number cursorX
The new x position of the cursor relative to the panels origin.
2 number cursorY
The new y position of the cursor relative to the panels origin.

Returns

1 boolean
Return true to suppress default action.