app/javascript/controllers/hide_on_scroll_controller.js
Function connect
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
connect() {
function debounce(func, wait = 10, immediate = true) {
let timeout
return function() {
let context = this, args = arguments