mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 14:54:09 +02:00
Horizontal scroll wheel support
This commit is contained in:
parent
a944aa6d24
commit
72242aa31c
11 changed files with 51 additions and 28 deletions
|
@ -273,7 +273,7 @@ namespace IDE.ui
|
|||
let windowRect = Rect(mWidgetWindow.mX, mWidgetWindow.mY, mWidgetWindow.mWindowWidth, mWidgetWindow.mWindowHeight);
|
||||
if (windowRect.Contains(mouseScreenX, mouseScreenY))
|
||||
{
|
||||
MouseWheel(evt.mX - mWidgetWindow.mX, evt.mY - mWidgetWindow.mY, evt.mWheelDelta);
|
||||
MouseWheel(evt.mX - mWidgetWindow.mX, evt.mY - mWidgetWindow.mY, evt.mWheelDeltaX, evt.mWheelDeltaY);
|
||||
evt.mHandled = true;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -2135,11 +2135,11 @@ namespace IDE.ui
|
|||
}
|
||||
*/
|
||||
|
||||
public override void MouseWheel(float x, float y, float delta)
|
||||
public override void MouseWheel(float x, float y, float deltaX, float deltaY)
|
||||
{
|
||||
base.MouseWheel(x, y, delta);
|
||||
base.MouseWheel(x, y, deltaX, deltaY);
|
||||
if (mInfiniteScrollbar != null)
|
||||
mInfiniteScrollbar.MouseWheel(x, y, delta);
|
||||
mInfiniteScrollbar.MouseWheel(x, y, deltaX, deltaY);
|
||||
}
|
||||
|
||||
public void ResetPosition(int position)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue