Skip to content

Commit f5e3426

Browse files
committed
Commented out "event.preventDefault" on various Controls.
Sorry @dmenne and @mrdoob, unfortunately this was causing more pains than it solved (mrdoob#1986). This interfered with very common use patterns on vanilla browser settings (e.g. page reloading or opening of console) while it helped just with a specific customized browser issue. And it doesn't help to just call preventDefault on "consumed" events, as individual keys can be still part of multi-key hotkey combos (e.g. "R" is used both in FlyControls and "ctrl+R").
1 parent e93a0fd commit f5e3426

File tree

7 files changed

+47
-49
lines changed

7 files changed

+47
-49
lines changed

build/Three.js

Lines changed: 18 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/ThreeCanvas.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)