From 06929ae6856069472ce92e1358812d277fe160c7 Mon Sep 17 00:00:00 2001 From: Hyunje Jun Date: Tue, 18 Oct 2016 16:28:34 +0900 Subject: [PATCH] Don't consume if child's not scrollable Resolve #541. --- src/js/plugin/handler/mouse-wheel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/plugin/handler/mouse-wheel.js b/src/js/plugin/handler/mouse-wheel.js index a861619..9e08f30 100644 --- a/src/js/plugin/handler/mouse-wheel.js +++ b/src/js/plugin/handler/mouse-wheel.js @@ -62,7 +62,8 @@ function bindMouseWheelHandler(element, i) { function shouldBeConsumedByChild(deltaX, deltaY) { var child = element.querySelector('textarea:hover, select[multiple]:hover, .ps-child:hover'); if (child) { - if (child.tagName !== 'TEXTAREA' && !window.getComputedStyle(child).overflow.match(/(scroll|auto)/)) { + if (!window.getComputedStyle(child).overflow.match(/(scroll|auto)/)) { + // if not scrollable return false; }