We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d3bbf9 commit 8a51de9Copy full SHA for 8a51de9
lib/DraggableCore.es6
@@ -253,6 +253,9 @@ export default class DraggableCore extends React.Component {
253
254
handleDrag: EventHandler<MouseTouchEvent> = (e) => {
255
256
+ // Prevent scrolling on mobile devices, like ipad/iphone.
257
+ if (e.type === 'touchmove') e.preventDefault();
258
+
259
// Get the current drag point from the event. This is used as the offset.
260
const position = getControlPosition(e, this.state.touchIdentifier, this);
261
if (position == null) return;
0 commit comments