1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Change wheel direction to match stable

This commit is contained in:
smoogipoo 2018-03-13 14:30:50 +09:00
parent e580819621
commit df352c98d6

View File

@ -146,7 +146,7 @@ namespace osu.Game.Rulesets.Edit
const int beat_snap_divisor = 4; // Todo: This should not be a constant
double seekAmount = timingPoint.BeatLength / beat_snap_divisor;
int direction = state.Mouse.WheelDelta > 0 ? 1 : -1;
int direction = state.Mouse.WheelDelta > 0 ? -1 : 1;
// The direction is added to prevent rounding issues by enforcing that abs(unsnappedTime - currentTime) > beatLength
double unsnappedTime = adjustableClock.CurrentTime + seekAmount * direction + direction;