Move sticker with arrow keys instead of resizing it

This commit is contained in:
Jaex 2018-02-07 13:50:58 +03:00
parent 0bed292339
commit ee96cd98fb

View file

@ -50,7 +50,7 @@ public override void ShowNodes()
{
}
private void OpenStickerPicker(bool creating)
private void OpenStickerForm(bool creating)
{
Manager.Form.Pause();
@ -99,12 +99,17 @@ public override void OnCreating()
Point pos = InputManager.ClientMousePosition;
Rectangle = new Rectangle(pos.X, pos.Y, 1, 1);
OpenStickerPicker(true);
OpenStickerForm(true);
}
public override void OnDoubleClicked()
{
OpenStickerPicker(false);
OpenStickerForm(false);
}
public override void Resize(int x, int y, bool fromBottomRight)
{
Move(x, y);
}
}
}