beginUserDrag/endUserDrag

This commit is contained in:
smoogipoo 2018-05-24 14:36:48 +09:00
parent d4f68e0b67
commit b649025e86
1 changed files with 6 additions and 6 deletions

View File

@ -115,7 +115,7 @@ protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
{
if (base.OnMouseDown(state, args))
{
beginUserInput();
beginUserDrag();
return true;
}
@ -124,18 +124,18 @@ protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
endUserInput();
endUserDrag();
return base.OnMouseUp(state, args);
}
private void beginUserInput()
private void beginUserDrag()
{
handlingDragInput = true;
trackWasPlaying = adjustableClock.IsRunning;
adjustableClock.Stop();
}
private void endUserInput()
private void endUserDrag()
{
handlingDragInput = false;
if (trackWasPlaying)
@ -158,7 +158,7 @@ protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
{
if (base.OnMouseDown(state, args))
{
timeline.beginUserInput();
timeline.beginUserDrag();
return true;
}
@ -167,7 +167,7 @@ protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
{
timeline.endUserInput();
timeline.endUserDrag();
return base.OnMouseUp(state, args);
}
}