Remove select element hack for Firefox

The select scrolling bug has been resolved in the latest version of
Firefox.

Resolve #311
This commit is contained in:
Hyunje Alex Jun 2015-12-10 12:58:11 +09:00
parent 6e32d3ddce
commit eb02d5ae65

View File

@ -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];