Merge pull request #227 from LLK/revert-ios-scroll

revert ios scroll fix
This commit is contained in:
chrisgarrity 2019-10-31 13:14:57 -04:00 committed by GitHub
commit e925c1beab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,17 +226,15 @@ export default class ScratchJr {
static editorEvents () {
document.ongesturestart = undefined;
document.ontouchmove = function (e) {
e.preventDefault();
};
window.ontouchstart = ScratchJr.unfocus;
if (isTablet) {
window.ontouchend = undefined;
} else {
window.onmouseup = undefined;
}
document.body.addEventListener('touchmove',
function (e) {
e.preventDefault();
},
{passive: false});
}
static unfocus (evt) {