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';
|
'use strict';
|
||||||
|
|
||||||
var h = require('../../lib/helper')
|
var instances = require('../instances')
|
||||||
, instances = require('../instances')
|
|
||||||
, updateGeometry = require('../update-geometry')
|
, updateGeometry = require('../update-geometry')
|
||||||
, updateScroll = require('../update-scroll');
|
, updateScroll = require('../update-scroll');
|
||||||
|
|
||||||
@ -81,13 +80,6 @@ function bindMouseWheelHandler(element, i) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function mousewheelHandler(e) {
|
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 delta = getDeltaFromEvent(e);
|
||||||
|
|
||||||
var deltaX = delta[0];
|
var deltaX = delta[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user