algo/scroll: reverse horizontal dir mapping of vertical scroll directions (#13647)

This commit is contained in:
Sola 2026-03-14 05:13:06 +08:00 committed by GitHub
parent 030e892154
commit 2877ca2933
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -876,8 +876,8 @@ void CScrollingAlgorithm::moveTargetTo(SP<ITarget> t, Math::eDirection dir, bool
switch (dir) {
case Math::DIRECTION_UP: return Math::DIRECTION_RIGHT;
case Math::DIRECTION_DOWN: return Math::DIRECTION_LEFT;
case Math::DIRECTION_LEFT: return Math::DIRECTION_DOWN;
case Math::DIRECTION_RIGHT: return Math::DIRECTION_UP;
case Math::DIRECTION_LEFT: return Math::DIRECTION_UP;
case Math::DIRECTION_RIGHT: return Math::DIRECTION_DOWN;
default: break;
}
@ -887,8 +887,8 @@ void CScrollingAlgorithm::moveTargetTo(SP<ITarget> t, Math::eDirection dir, bool
switch (dir) {
case Math::DIRECTION_UP: return Math::DIRECTION_LEFT;
case Math::DIRECTION_DOWN: return Math::DIRECTION_RIGHT;
case Math::DIRECTION_LEFT: return Math::DIRECTION_DOWN;
case Math::DIRECTION_RIGHT: return Math::DIRECTION_UP;
case Math::DIRECTION_LEFT: return Math::DIRECTION_UP;
case Math::DIRECTION_RIGHT: return Math::DIRECTION_DOWN;
default: break;
}