From eb02d5ae65ea6d9ea41ab149980f375c78efcebc Mon Sep 17 00:00:00 2001 From: Hyunje Alex Jun Date: Thu, 10 Dec 2015 12:58:11 +0900 Subject: [PATCH] Remove select element hack for Firefox The select scrolling bug has been resolved in the latest version of Firefox. Resolve #311 --- src/js/plugin/handler/mouse-wheel.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/js/plugin/handler/mouse-wheel.js b/src/js/plugin/handler/mouse-wheel.js index 5b85089..d298178 100644 --- a/src/js/plugin/handler/mouse-wheel.js +++ b/src/js/plugin/handler/mouse-wheel.js @@ -3,8 +3,7 @@ */ 'use strict'; -var h = require('../../lib/helper') - , instances = require('../instances') +var instances = require('../instances') , updateGeometry = require('../update-geometry') , updateScroll = require('../update-scroll'); @@ -81,13 +80,6 @@ function bindMouseWheelHandler(element, i) { } function mousewheelHandler(e) { - // FIXME: this is a quick fix for the select problem in FF and IE. - // If there comes an effective way to deal with the problem, - // this lines should be removed. - if (!h.env.isWebKit && element.querySelector('select:focus')) { - return; - } - var delta = getDeltaFromEvent(e); var deltaX = delta[0];