Update DomPointer.js to revert typo (#5817)
Restore IE-specific pointerType check which was accidentally removed previously. Fixes #5798.
This commit is contained in:
parent
d9655a1e9a
commit
11cbfa8095
@ -55,7 +55,7 @@ export function removePointerListener(obj, type, id) {
|
|||||||
|
|
||||||
function _addPointerStart(obj, handler, id) {
|
function _addPointerStart(obj, handler, id) {
|
||||||
var onDown = Util.bind(function (e) {
|
var onDown = Util.bind(function (e) {
|
||||||
if (e.pointerType !== 'mouse' && e.pointerType !== e.MSPOINTER_TYPE_MOUSE && e.pointerType !== e.MSPOINTER_TYPE_MOUSE) {
|
if (e.pointerType !== 'mouse' && e.MSPOINTER_TYPE_MOUSE && e.pointerType !== e.MSPOINTER_TYPE_MOUSE) {
|
||||||
// In IE11, some touch events needs to fire for form controls, or
|
// In IE11, some touch events needs to fire for form controls, or
|
||||||
// the controls will stop working. We keep a whitelist of tag names that
|
// the controls will stop working. We keep a whitelist of tag names that
|
||||||
// need these events. For other target tags, we prevent default on the event.
|
// need these events. For other target tags, we prevent default on the event.
|
||||||
|
Loading…
Reference in New Issue
Block a user