I want to fire an event-handler after and only if the scrolling has been stopped for specific time (lets say 0.2sec).
I have some positioning CSS styles associated with off-canvas side menu (in mobile version) which is continuously and automatically assigned a new value corresponding to the scrolling, every time the user scroll.
I want to fire this event-handler (of assigning a new value) only if 0.2sec has lapsed after the user starts and stops scrolling.
If I associate this event with scroll-event then it wont wait for the condition to check if 0.2sec has lapsed. it will just keep on firing event handler while the user scrolls.
So how can I make this happen?