From 8ec78f93194051b9f59b75cda6ba42feea3426ee Mon Sep 17 00:00:00 2001 From: Akila Bandara Date: Fri, 26 Feb 2021 22:49:06 +0530 Subject: [PATCH] Fix: Change Event Propagation Logic Stop event propagation only if scrolling is available or scroller is in between the scrolling range. --- src/finbars.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/finbars.js b/src/finbars.js index 5198c46..6b293f9 100644 --- a/src/finbars.js +++ b/src/finbars.js @@ -700,8 +700,11 @@ var handlersToBeBound = { onwheel: function (evt) { this.index += evt[this.deltaProp] * this[this.deltaProp + 'Factor'] * this.normal; - evt.stopPropagation(); - evt.preventDefault(); + + if (this.range && this.range.min < this.index < this.range.max) { + evt.stopPropagation(); + evt.preventDefault(); + } }, onclick: function (evt) {