mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-21 23:10:36 +03:00
Remove the use of depcreated .hover() method
This commit is contained in:
@@ -3313,12 +3313,12 @@
|
|||||||
compatibility.prvD(event);
|
compatibility.prvD(event);
|
||||||
compatibility.stpP(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) {
|
if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) {
|
||||||
_scrollbarsAutoHideFlagScrollAndHovered = true;
|
_scrollbarsAutoHideFlagScrollAndHovered = true;
|
||||||
refreshScrollbarsAutoHide(true);
|
refreshScrollbarsAutoHide(true);
|
||||||
}
|
}
|
||||||
}, function() {
|
}).on('mouseleave', function() {
|
||||||
if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) {
|
if (_scrollbarsAutoHideScroll || _scrollbarsAutoHideMove) {
|
||||||
_scrollbarsAutoHideFlagScrollAndHovered = false;
|
_scrollbarsAutoHideFlagScrollAndHovered = false;
|
||||||
refreshScrollbarsAutoHide(false);
|
refreshScrollbarsAutoHide(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user