Merge pull request #31 from surebrec/main

fix misspell (causing NPE)
This commit is contained in:
DebugST 2025-03-04 15:37:31 +08:00 committed by GitHub
commit 90acc47d87
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -974,7 +974,7 @@ namespace ST.Library.UI.NodeEditor
protected internal virtual void OnMouseWheel(MouseEventArgs e) {
Point pt = e.Location;
pt.Y -= this._TitleHeight;
if (m_ctrl_hover != null && m_ctrl_active.Enabled && m_ctrl_hover.Visable) {
if (m_ctrl_hover != null && m_ctrl_hover.Enabled && m_ctrl_hover.Visable) {
m_ctrl_hover.OnMouseWheel(new MouseEventArgs(e.Button, e.Clicks, e.X - m_ctrl_hover.Left, pt.Y - m_ctrl_hover.Top, e.Delta));
return;
}