Why is e.ctrlKey true when scrolling the page ?

7 views
Skip to first unread message

Sig ma

unread,
Nov 17, 2015, 12:26:30 PM11/17/15
to Google Chrome Developer Tools
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>e.ctrlKey Test</title>
<style>
html{
height: 200vh;
}
</style>
</head>
<body>
<h1>Why is e.ctrlKey true when scrolling the page ?</h1>
<ol>
<li>F12 to popup Chrome Dev Tools, and switch to Console TAB;</li>
<li>Scroll your mouse without moving it.</li>
</ol>
<script>
window.onload = function(){
document.addEventListener('mousemove', function(e){
console.log( e.ctrlKey );
});
};
</script>
</body>
</html>

Version:
46.0.2490.80 m

Reproduction:
  1. F12 to popup Chrome Dev Tools, and switch to Console TAB;
  2. Scroll your mouse without moving it.

PhistucK

unread,
Nov 17, 2015, 12:51:49 PM11/17/15
to Google Chrome Developer Tools
You should ask this at blink-dev​, as this group is only about the Developer Tools feature and not general web or compatibility questions.

Also, you might want to test other browsers (it might be a compatibility thing) and consult the specification.


PhistucK

--
You received this message because you are subscribed to the Google Groups "Google Chrome Developer Tools" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-chrome-develo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-chrome-developer-tools/1d8d8b70-27e3-423a-b4c7-f9db4b315042%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages