From b8a5c7285e8d608f7fc134498fad209ee5bf30a8 Mon Sep 17 00:00:00 2001 From: Alessandro Corbelli Date: Thu, 18 Oct 2018 15:56:11 +0200 Subject: [PATCH] Remove the use of depcreated .hover() method --- js/jquery.overlayScrollbars.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.overlayScrollbars.js b/js/jquery.overlayScrollbars.js index cd67608..4d8c607 100644 --- a/js/jquery.overlayScrollbars.js +++ b/js/jquery.overlayScrollbars.js @@ -3313,12 +3313,12 @@ compatibility.prvD(event); compatibility.stpP(event); } - }).hover(function() { //make sure both scrollbars will stay visible if one scrollbar is hovered if autoHide is "scroll". + }).on('mouseenter', function() { //make sure both scrollbars will stay visible if one scrollbar is hovered if autoHide is "scroll". if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) { _scrollbarsAutoHideFlagScrollAndHovered = true; refreshScrollbarsAutoHide(true); } - }, function() { + }).on('mouseleave', function() { if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) { _scrollbarsAutoHideFlagScrollAndHovered = false; refreshScrollbarsAutoHide(false);