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:
Vishal pandey 2021-01-04 16:52:16 +05:30 committed by GitHub
parent 83e691f58a
commit ff74279d6f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 */
}
}