Skip to content

Commit da62f68

Browse files
authored
Merge pull request #311479 from microsoft/dev/mjbvz/heavy-aardvark
Remove old `MSGestureEvent` based conditional
2 parents dadeb7c + 38b3e89 commit da62f68

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/vs/base/browser/mouseEvent.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,8 @@ export class StandardMouseEvent implements IMouseEvent {
6767
this.altKey = e.altKey;
6868
this.metaKey = e.metaKey;
6969

70-
if (typeof e.pageX === 'number') {
71-
this.posx = e.pageX;
72-
this.posy = e.pageY;
73-
} else {
74-
// Probably hit by MSGestureEvent
75-
this.posx = e.clientX + this.target.ownerDocument.body.scrollLeft + this.target.ownerDocument.documentElement.scrollLeft;
76-
this.posy = e.clientY + this.target.ownerDocument.body.scrollTop + this.target.ownerDocument.documentElement.scrollTop;
77-
}
70+
this.posx = e.pageX;
71+
this.posy = e.pageY;
7872

7973
// Find the position of the iframe this code is executing in relative to the iframe where the event was captured.
8074
const iframeOffsets = IframeUtils.getPositionOfChildWindowRelativeToAncestorWindow(targetWindow, e.view);

0 commit comments

Comments
 (0)