Skip to content

Commit

Permalink
fix: cannot drag on progress bar in IE9 (#4783)
Browse files Browse the repository at this point in the history
fix #4773
  • Loading branch information
kocoten1992 authored and gkatsev committed Dec 4, 2017
1 parent c5ae98b commit 2337c1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/utils/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import log from './log.js';
import tsml from 'tsml';
import {isObject} from './obj';
import computedStyle from './computed-style';
import * as browser from './browser';

/**
* Detect if a value is a string with any non-whitespace characters.
Expand Down Expand Up @@ -782,6 +783,12 @@ export function isSingleLeftClick(event) {
return true;
}

if (browser.IE_VERSION === 9) {
// Ignore IE9

return true;
}

if (event.button !== 0 || event.buttons !== 1) {
// This is the reason we have those if else block above
// if any special case we can catch and let it slide
Expand Down

0 comments on commit 2337c1b

Please sign in to comment.