mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-30 01:38:01 +01:00
Fix changed event and reformat in Views.
This commit is contained in:
@@ -92,7 +92,7 @@ namespace Terminal.Gui {
|
||||
/// <returns><c>true</c>, if the event was handled, <c>false</c> otherwise.</returns>
|
||||
public override bool OnMouseEvent (MouseEvent mouseEvent)
|
||||
{
|
||||
MouseEventArgs args = new MouseEventArgs (mouseEvent);
|
||||
MouseEventEventArgs args = new MouseEventEventArgs (mouseEvent);
|
||||
if (OnMouseClick (args))
|
||||
return true;
|
||||
if (MouseEvent (mouseEvent))
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace Terminal.Gui {
|
||||
// }
|
||||
//}
|
||||
|
||||
void ContentBottomRightCorner_MouseClick (object sender, MouseEventArgs me)
|
||||
void ContentBottomRightCorner_MouseClick (object sender, MouseEventEventArgs me)
|
||||
{
|
||||
if (me.MouseEvent.Flags == MouseFlags.WheeledDown || me.MouseEvent.Flags == MouseFlags.WheeledUp
|
||||
|| me.MouseEvent.Flags == MouseFlags.WheeledRight || me.MouseEvent.Flags == MouseFlags.WheeledLeft) {
|
||||
|
||||
@@ -237,14 +237,14 @@ namespace Terminal.Gui {
|
||||
SetNeedsLayout ();
|
||||
}
|
||||
|
||||
void View_MouseLeave (object sender, MouseEventArgs e)
|
||||
void View_MouseLeave (object sender, MouseEventEventArgs e)
|
||||
{
|
||||
if (Application.MouseGrabView != null && Application.MouseGrabView != vertical && Application.MouseGrabView != horizontal) {
|
||||
Application.UngrabMouse ();
|
||||
}
|
||||
}
|
||||
|
||||
void View_MouseEnter (object sender, MouseEventArgs e)
|
||||
void View_MouseEnter (object sender, MouseEventEventArgs e)
|
||||
{
|
||||
Application.GrabMouse (this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user