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:
parent
6e32d3ddce
commit
eb02d5ae65
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user