Changes as requested by zfox23 - Start and stop timers on hover only if scroll is enabled.

This commit is contained in:
Roxanne Skelly 2018-08-14 16:32:56 -07:00
parent 5a8da4ce97
commit 50b0a458ce

View file

@ -143,11 +143,15 @@ Column {
shadowHeight: root.stackedCardShadowHeight; shadowHeight: root.stackedCardShadowHeight;
hoverThunk: function () { hoverThunk: function () {
hovered = true; hovered = true;
autoScrollTimer.stop(); if(root.autoScrollTimerEnabled) {
autoScrollTimer.stop();
}
} }
unhoverThunk: function () { unhoverThunk: function () {
hovered = false; hovered = false;
autoScrollTimer.start(); if(root.autoScrollTimerEnabled) {
autoScrollTimer.start();
}
} }
} }