File tree 3 files changed +3
-7
lines changed
3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 1
1
/* global AHL_SIDEBAR_LINK_SELECTOR, AHL_HEADER_ANCHOR_SELECTOR */
2
2
3
- import throttle from 'lodash.throttle '
3
+ import debounce from 'lodash.debounce '
4
4
5
5
export default {
6
6
mounted ( ) {
7
7
window . addEventListener ( 'scroll' , this . onScroll )
8
8
} ,
9
9
10
10
methods : {
11
- onScroll : throttle ( function ( ) {
11
+ onScroll : debounce ( function ( ) {
12
12
this . setActiveHash ( )
13
13
} , 300 ) ,
14
14
Original file line number Diff line number Diff line change 18
18
" generator"
19
19
],
20
20
"dependencies" : {
21
- "lodash.throttle " : " ^4.1.1 "
21
+ "lodash.debounce " : " ^4.0.8 "
22
22
},
23
23
"author" :
" ULIVZ <[email protected] >" ,
24
24
"license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -7304,10 +7304,6 @@ lodash.templatesettings@^4.0.0:
7304
7304
dependencies :
7305
7305
lodash._reinterpolate "~3.0.0"
7306
7306
7307
- lodash.throttle@^4.1.1 :
7308
- version "4.1.1"
7309
- resolved "https://registry.yarnpkg.com/lodash.throttle/-/lodash.throttle-4.1.1.tgz#c23e91b710242ac70c37f1e1cda9274cc39bf2f4"
7310
-
7311
7307
7312
7308
version "4.0.1"
7313
7309
resolved "https://registry.yarnpkg.com/lodash.unescape/-/lodash.unescape-4.0.1.tgz#bf2249886ce514cda112fae9218cdc065211fc9c"
You can’t perform that action at this time.
0 commit comments