microsoft / microsoft/TypeScript

Document.onmousewheel event was removed from typescript

Open
#30,067 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Domain: lib.d.ts
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

TypeScript Version: 3.4.0-dev.201xxxxx

Search Terms:

Code

// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.

Expected behavior:
document.onmousewheel should be existed.

Actual behavior:
Intellisense & on build getting an error: Property 'onmousewheel' does not exist on type 'Document'.

Playground Link:

Related Issues:
I've noticed that this event was removed on the following commit from lib.dom.d.ts:
https://github.com/Microsoft/TypeScript/commit/79e5e79ef7724066889fbce97e9e6d6db4e746b5#diff-46fd87925e4552c166ec188712741c3f

I was wondering if it's a mistake or if there was a reason for the removal.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the Document declarations in lib.dom.d.ts and the linked commit that removed onmousewheel. Reproduce the reported IntelliSense or tsc error with the TypeScript version described, then determine whether the DOM event should be present; done means the expected declaration behavior is established and covered by the relevant TypeScript checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.