Revert "Attempt fixing scrolling by preventing touchmove events"

This reverts commit bf4a2e489f.
master
Torjus 2018-08-09 10:19:53 +02:00
parent bf4a2e489f
commit 3a0d6f3622
1 changed files with 0 additions and 8 deletions

View File

@ -49,24 +49,16 @@ class Room extends React.Component
this.waitForHide();
}
handleTouchMove = (event) =>
{
event.preventDefault();
event.stopPropagation();
};
componentDidMount()
{
window.addEventListener('mousemove', this.handleMovement);
window.addEventListener('touchstart', this.handleMovement);
document.body.addEventListener('touchmove', this.handleTouchMove, false);
}
componentWillUnmount()
{
window.removeEventListener('mousemove', this.handleMovement);
window.removeEventListener('touchstart', this.handleMovement);
document.body.removeEventListener('touchmove', this.handleTouchMove);
}
render()