mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -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 () {
|
static editorEvents () {
|
||||||
document.ongesturestart = undefined;
|
document.ongesturestart = undefined;
|
||||||
|
document.ontouchmove = function (e) {
|
||||||
|
e.preventDefault();
|
||||||
|
};
|
||||||
window.ontouchstart = ScratchJr.unfocus;
|
window.ontouchstart = ScratchJr.unfocus;
|
||||||
if (isTablet) {
|
if (isTablet) {
|
||||||
window.ontouchend = undefined;
|
window.ontouchend = undefined;
|
||||||
} else {
|
} else {
|
||||||
window.onmouseup = undefined;
|
window.onmouseup = undefined;
|
||||||
}
|
}
|
||||||
document.body.addEventListener('touchmove',
|
|
||||||
function (e) {
|
|
||||||
e.preventDefault();
|
|
||||||
},
|
|
||||||
{passive: false});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static unfocus (evt) {
|
static unfocus (evt) {
|
||||||
|
|
Loading…
Reference in a new issue