I have an element on which I trigger the function 'scrollIntoView()'. And now I have to detect and catch this event when it is triggered.
I trigger it like this:
$('.element').scrollIntoView();
So I tried to catch it with jquery with something like this:
$('.element').on('scroll', function() { // STUFF });
$('.element').on('scrollIntoView', function() { // STUFF });
But unfortunately it's not working.
Is this even possible? Which event does it trigger?