Skip to content

Loading…

[1.0] Tap gesture does not trigger when calling `this.click` in IE10 #1640

Closed
cdata opened this Issue · 1 comment

1 participant

@cdata
Owner

Considering the following contrived element and usage:

var XTapable = Polymer({
  is: 'x-tapable`

  listeners: {
    tap: '_onTap'
  },

  _onTap: function() {
    console.log('Tapped');
  }
});

var tapable = new XTapable();

tapable.click();

"Tapped" is not logged to the console in IE10.

Here is a live JSBin example.

@cdata cdata added bug ie10 labels
@cdata
Owner

/cc @azakus

@azakus azakus closed this issue from a commit
@azakus azakus Fix `element.click()` sending tap on IE10
IE 10 uses current mouse position for clientX and clientY, which breaks the
TAP_DISTANCE function.
Use NaN as a default start position to mitigate

Fixes #1640 [1.0] Tap gesture does not trigger when calling `this.click` in IE10
777a5bc
@azakus azakus closed this in 777a5bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.