Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Both "pointerup" and "MSPointerUp"​​​ are triggered in IE10 and IE11 if zone.js is used #589

Closed
dxvladislavvolkov opened this issue Jan 11, 2017 · 2 comments · May be fixed by #1129

Comments

@dxvladislavvolkov
Copy link

Hello, I registered an event handler for the "pointerup" and "MSPointerUp" events. The "MSPointerUp" event is handled for IE10 compatibility and the "pointerup" event for IE11
As a result, both handlers are executed in IE11 (and IE10) if zone.js is registered on the page. 
I expect that only one handler should be executed.
You can see example here.

@JiaLiPassion
Copy link
Collaborator

Without zone.js, the event also both triggered, you can see this plunker, but maybe IE do some tricks to see whether the MSPointer handler is the same with pointerup handler, if they the same, the handler will be executed once.

And with zone.js patch, the handler are not equals even they reference the same handler.

I'm not sure whether zone.js should handle this or not.

JiaLiPassion added a commit to JiaLiPassion/zone.js that referenced this issue Aug 26, 2018
JiaLiPassion added a commit to JiaLiPassion/zone.js that referenced this issue Sep 6, 2018
JiaLiPassion added a commit to JiaLiPassion/zone.js that referenced this issue Sep 6, 2018
JiaLiPassion added a commit to JiaLiPassion/zone.js that referenced this issue Sep 11, 2018
@JiaLiPassion
Copy link
Collaborator

close for duplicate

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants