Skip to content

Commit 080acfc

Browse files
committed
Only scroll when focussing an item not on hover
1 parent ddfd53d commit 080acfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/scroll-container.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ export default class ScrollContainerComponent extends Component {
2727
}
2828

2929
get scrollTargetStyle() {
30-
let { index, itemHeight, previewing, currentItem } = this;
30+
let { index, itemHeight, currentItem } = this;
3131

3232
if (index === -1) {
3333
return htmlSafe('display: none;');
3434
} else {
35-
const level = previewing?.level ?? currentItem?.level ?? 0;
35+
const level = currentItem?.level ?? 0;
3636
const left = indentItem(level) + 10;
3737
const height = itemHeight ?? 0;
3838

0 commit comments

Comments
 (0)