mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-25 00:28:20 -05:00
Merge pull request #227 from LLK/revert-ios-scroll
revert ios scroll fix
This commit is contained in:
commit
e925c1beab
1 changed files with 3 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue