Skip to content

Remove old MSGestureEvent based conditional#311479

Merged
mjbvz merged 1 commit intomainfrom
dev/mjbvz/heavy-aardvark
Apr 20, 2026
Merged

Remove old MSGestureEvent based conditional#311479
mjbvz merged 1 commit intomainfrom
dev/mjbvz/heavy-aardvark

Conversation

@mjbvz
Copy link
Copy Markdown
Collaborator

@mjbvz mjbvz commented Apr 20, 2026

I think this only existed in ie/edge which we haven't supported for a while

I think this only existed in ie/edge?
Copilot AI review requested due to automatic review settings April 20, 2026 20:24
@mjbvz mjbvz enabled auto-merge April 20, 2026 20:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes a legacy MSGestureEvent fallback path in StandardMouseEvent that computed pageX/pageY from clientX/clientY + scroll offsets, simplifying mouse position handling now that legacy IE/Edge event models are no longer supported.

Changes:

  • Remove conditional handling for missing pageX/pageY in StandardMouseEvent.
  • Always use MouseEvent.pageX/pageY for position computation.
Show a summary per file
File Description
src/vs/base/browser/mouseEvent.ts Simplifies StandardMouseEvent coordinate extraction by removing the legacy MSGestureEvent branch.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@mjbvz mjbvz merged commit da62f68 into main Apr 20, 2026
30 checks passed
@mjbvz mjbvz deleted the dev/mjbvz/heavy-aardvark branch April 20, 2026 20:45
@vs-code-engineering vs-code-engineering Bot added this to the 1.118.0 milestone Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants