|
|
@@ -221,8 +221,11 @@ namespace Y.Skin.YoForm.Irregular
|
|
|
protected override void OnMouseMove(MouseEventArgs e)
|
|
|
{
|
|
|
base.OnMouseMove(e);
|
|
|
- FormStyleAPI.ReleaseCapture();
|
|
|
- FormStyleAPI.SendMessage(Handle, FormStyleAPI.WM_NCLBUTTONDOWN, FormStyleAPI.HTCAPTION, 0);
|
|
|
+ if (e.Button == MouseButtons.Left)
|
|
|
+ {
|
|
|
+ FormStyleAPI.ReleaseCapture();
|
|
|
+ FormStyleAPI.SendMessage(Handle, FormStyleAPI.WM_NCLBUTTONDOWN, FormStyleAPI.HTCAPTION, 0);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void IrregularFormSkin_Load(object sender, EventArgs e)
|