Skip to content

Commit 98e1d99

Browse files
authored
fix (horizontal scroller): remove the delay in enabling of links after dragging (#3697)
1 parent 2be565e commit 98e1d99

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/block/horizontal-scroller/frontend-horizontal-scroller.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,13 @@ class StackableHorizontalScroller {
6868
behavior: 'smooth',
6969
} )
7070

71+
children.forEach( child => {
72+
// this enables the links after dragging
73+
child.removeEventListener( 'click', onClickHandler, true )
74+
} )
75+
7176
dragTimeout = setTimeout( () => {
7277
el.classList.remove( 'stk--snapping-deactivated' )
73-
children.forEach( child => {
74-
// this enables the links after dragging
75-
child.removeEventListener( 'click', onClickHandler, true )
76-
} )
7778
}, 500 )
7879
}
7980

0 commit comments

Comments
 (0)