New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WheelEvent.wheelDelta[X|Y] should be removed from Dartium API #16046
Comments
Added Area-Dart2JS, Triaged labels. |
This comment was originally written by Danal...@gmail.com I have encountered the same error in version 1.3.0-dev.7.12. |
This comment was originally written by kunzhao7...@gmail.com In developer tool, if you hover the mouse to e.wheelDeltaY, it shows an value. Is there a work around? |
Removed Area-Dart2JS label. |
Use deltaY- wheelDeltaY is experimental and should be removed. |
Changed the title to: "WheelEvent.wheelDelta[X|Y] should be removed from Dartium API". |
Removed Priority-Unassigned label. |
Issue #23287 has been merged into this issue. |
Set owner to @alan-knight. |
https://codereview.chromium.org/1126463005/ Added Fixed label. |
This issue was originally filed by igor.ko...@mailvision.com
What steps will reproduce the problem?
Use the program:
import 'dart:html';
void main() {
querySelector("body").onMouseWheel.listen((e)=>mouseWheel(e));
}
void mouseWheel(WheelEvent e){
e.preventDefault();
bool down = e.wheelDeltaY > 0;
print(down);
}
What is the expected output? What do you see instead?
Works in dart mode, error during compilation to js:
C:/dart/badwheel/web/badwheel.dart:9:15: Warning: No member named 'wheelDeltaY' in class 'WheelEvent'.
bool down = e.wheelDeltaY > 0;
^^^^^^^^^^^^^
What version of the product are you using? On what operating system?
Dart SDK version 1.1.0-dev.5.0 in Windows 7 32bits
The text was updated successfully, but these errors were encountered: