When utilizing hover-triggered popovers for specific highlighted rows within a table, I noticed an issue. If you scroll away quickly using the mouse wheel, the popover remains visible for an extra second even though you are no longer hovering over the target element. This creates an odd effect where the popover moves in the opposite direction of your scrolling, eventually extending beyond the table's border.
Below is an example code snippet:
$('.popover_class').popover({
trigger: 'hover',
placement: 'right'
})
<tr class="bg-warning popover_class" data-toggle="popover" data-content="example"></tr>
I have tried implementing various solutions, such as hiding the popover on a scroll event after initializing it with the provided code:
$('.popover_class').on('scroll', function() {
this.popover('hide');
});
This project utilizes bootstrap 4, popper.js 1.15, jquery 3.4, and DataTables.
Thank you.