slideout
slideout copied to clipboard
Confine scroll area
Ignore touches on the right portion of the screen to prevent unwanted opening of the panel (only touches that start on the left 33% of the screen move the panel). In my opinion this should be the default behaviour, but it can be overridden:
var slideout = new Slideout({
'panel': document.getElementById('main'),
'menu': document.getElementById('menu'),
'fromedge': false
});
Prefer PR #10 which is more configurable and achieves the same thing.