mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
Fixed checking OfX instead of X on mouse event handler
This commit is contained in:
@@ -854,7 +854,7 @@ namespace Terminal.Gui {
|
||||
|
||||
if(me.Flags.HasFlag(MouseFlags.Button1Clicked)) {
|
||||
|
||||
var hit = ScreenToCell(me.OfX,me.OfY);
|
||||
var hit = ScreenToCell(me.X,me.Y);
|
||||
if(hit != null) {
|
||||
|
||||
SetSelection(hit.Value.X,hit.Value.Y,me.Flags.HasFlag(MouseFlags.ButtonShift));
|
||||
@@ -864,7 +864,7 @@ namespace Terminal.Gui {
|
||||
|
||||
// Double clicking a cell activates
|
||||
if(me.Flags == MouseFlags.Button1DoubleClicked) {
|
||||
var hit = ScreenToCell(me.OfX,me.OfY);
|
||||
var hit = ScreenToCell(me.X,me.Y);
|
||||
if(hit!= null) {
|
||||
OnCellActivated(new CellActivatedEventArgs(Table,hit.Value.X,hit.Value.Y));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user