- From: Jesse MacFadyen <notifications@github.com>
- Date: Thu, 14 Jul 2016 17:30:57 -0700
- To: w3c/screen-orientation <screen-orientation@noreply.github.com>
Received on Friday, 15 July 2016 00:31:27 UTC
userland code should be given the chance to ignore the event and prevent the orientation from changing.
```
function onOrientationChange(evt) {
if(evt.target.type !== 'landscape-primary') {
evt.preventDefault();
}
}
```
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/screen-orientation/issues/92
Received on Friday, 15 July 2016 00:31:27 UTC