swap: use correct direction for it_wrap
Always using .forward results in a crash when running `swap previous` on the first view in stack which should be wrapped.
This commit is contained in:
parent
aeeae92611
commit
945b7dc986
@ -51,7 +51,7 @@ pub fn swap(
|
|||||||
);
|
);
|
||||||
var it_wrap = ViewStack(View).iter(
|
var it_wrap = ViewStack(View).iter(
|
||||||
if (direction == .next) output.views.first else output.views.last,
|
if (direction == .next) output.views.first else output.views.last,
|
||||||
.forward,
|
if (direction == .next) .forward else .reverse,
|
||||||
output.pending.tags,
|
output.pending.tags,
|
||||||
filter,
|
filter,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user