File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
packages/app-frontend/src/mixins Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,18 @@ export default function ({
22
22
requestAnimationFrame ( ( ) => {
23
23
if ( this . inspectedIndex ) this . scrollIntoInspected ( this . inspectedIndex )
24
24
} )
25
- } , 100 , {
25
+ } , 200 , {
26
26
leading : true
27
27
} ) ,
28
28
29
29
scrollIntoInspected : debounce ( function ( index ) {
30
30
index += indexOffset
31
31
this . $nextTick ( ( ) => {
32
32
const scroller = this . $globalRefs . leftRecycleList || this . $globalRefs . leftScroll
33
+ if ( ! scroller ) {
34
+ this . scrollIntoInspected ( index )
35
+ return
36
+ }
33
37
const parentHeight = scroller . offsetHeight
34
38
const height = this . highDensity ? 22 : 34
35
39
const top = index * height
@@ -40,7 +44,7 @@ export default function ({
40
44
scroller . scrollTop = top + height - parentHeight
41
45
}
42
46
} )
43
- } , 30 , {
47
+ } , 200 , {
44
48
leading : true
45
49
} )
46
50
}
You can’t perform that action at this time.
0 commit comments