mirror of
https://github.com/micku7zu/vanilla-tilt.js
synced 2024-06-09 17:22:14 +02:00
Make device-orientation readable
Hello micku7zu, You have done wonderful work by creating vanilla-tilt.js. It is used by millions of developers like me. I just read your code and found that deviceorientation is not readable because it is not in the camel case and also not used any hyphen or underscore to identify it. It is very respectful project, that's why I created a pull request for it. Please consider it. Thank you.
This commit is contained in:
parent
83e691f58a
commit
ff74279d6f
|
@ -103,7 +103,7 @@ export default class VanillaTilt {
|
|||
}
|
||||
|
||||
if (this.gyroscope) {
|
||||
window.addEventListener("deviceorientation", this.onDeviceOrientationBind);
|
||||
window.addEventListener("device-orientation", this.onDeviceOrientationBind); /* Make device-orientation readable */
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue