Add a comment about precision scroll behaviour

This commit is contained in:
Dean Herbert
2018-06-18 03:03:09 +09:00
committed by GitHub
parent ae160baa6e
commit 31f9d0161d

View File

@ -100,7 +100,9 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
protected override bool OnScroll(InputState state)
{
if (state.Mouse.HasPreciseScroll)
// for now, we don't support zoom when using a precision scroll device. this needs gesture support.
return base.OnScroll(state);
setZoomTarget(zoomTarget + state.Mouse.ScrollDelta.Y, zoomedContent.ToLocalSpace(state.Mouse.NativeState.Position).X);
return true;
}