diff --git a/packages/react-dock/src/Dock.js b/packages/react-dock/src/Dock.js index 92ecea0f..bf0dd950 100644 --- a/packages/react-dock/src/Dock.js +++ b/packages/react-dock/src/Dock.js @@ -244,7 +244,9 @@ export default class Dock extends Component { }; componentDidMount() { + window.addEventListener('touchend', this.handleMouseUp); window.addEventListener('mouseup', this.handleMouseUp); + window.addEventListener('touchmove', this.handleMouseMove); window.addEventListener('mousemove', this.handleMouseMove); window.addEventListener('resize', this.handleResize); @@ -254,7 +256,9 @@ export default class Dock extends Component { } componentWillUnmount() { + window.removeEventListener('touchend', this.handleMouseUp); window.removeEventListener('mouseup', this.handleMouseUp); + window.removeEventListener('touchmove', this.handleMouseMove); window.removeEventListener('mousemove', this.handleMouseMove); window.removeEventListener('resize', this.handleResize); } @@ -329,7 +333,11 @@ export default class Dock extends Component {
)}