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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -100,7 +100,9 @@ protected override void Update()
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;
}