提交 e2e32dfe 编写于 作者: J Joao Moreno

fixes #2847

上级 b433ee53
......@@ -245,7 +245,7 @@ export class List<T> implements IDisposable {
if (this.length === 0) return;
const focus = this.focus.get();
let index = focus.length > 0 ? focus[0] - n : 0;
if (loop && index < 0) index = this.length + (index % this.length);
if (loop && index < 0) index = (this.length + (index % this.length)) % this.length;
this.setFocus(Math.max(index, 0));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册